RFR: 8286707: JFR: Don't commit JFR internal jdk.JavaMonitorWait events

Joakim Nordström jnordstrom at openjdk.java.net
Wed May 25 12:48:00 UTC 2022


On Wed, 25 May 2022 12:24:03 GMT, Joakim Nordström <jnordstrom at openjdk.org> wrote:

> Changed the JFR chunk rotation lock object to specific internal class. This allows that specific Object.wait() event to be skipped, thus not adding JFR internal noise to recordings. 
> 
> # Testing
> - jdk_jfr

src/jdk.jfr/share/classes/jdk/jfr/internal/FileDeltaChangeLockObject.java line 32:

> 30:  * to Object.wait() on this object will not generate a JFR event.
> 31:  */
> 32: class FileDeltaChangeLockObject {}

Or would a more general lock object be preferred? I couldn't find any more explicitly JFR related monitors in use.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8883


More information about the hotspot-dev mailing list