RFR: 6805: Event emission only on exceptions
Marcus Hirt
hirt at openjdk.java.net
Tue Jun 30 18:52:27 UTC 2020
On Mon, 29 Jun 2020 22:37:17 GMT, Joshua Matsuoka <jmatsuoka at openjdk.org> wrote:
> This PR implements [JMC-6805](https://bugs.openjdk.java.net/browse/JMC-6805) allowing the agent to optionally only emit
> events when exceptions are thrown by the instrumented method. This is configurable via an added xml option that when
> set to true will only emit the event in the catch of the injected try-catch block.
agent/src/test/java/org/openjdk/jmc/agent/test/TestEmitOnlyOnException.java line 2:
> 1: /*
> 2: * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
> 3: * Copyright (c) 2019, 2020, Red Hat Inc. All rights reserved.
Nit: I think it's fine to set copyright to only 2020.
agent/src/test/java/org/openjdk/jmc/agent/test/TestDummy.java line 2:
> 1: /*
> 2: * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
> 3: * Copyright (c) 2019, 2020, Red Hat Inc. All rights reserved.
New file - copyright 2020 only.
-------------
PR: https://git.openjdk.java.net/jmc/pull/92
More information about the jmc-dev
mailing list