RFR: 8368670: Deadlock in JFR on event register + class load

Steven Schlansker duke at openjdk.org
Mon Oct 6 23:15:57 UTC 2025


On Wed, 1 Oct 2025 16:56:53 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> Could I have a review a PR that prevents a deadlock? The MetadataRepository::isEnabled check is an optimization that allows JFR to instrument disabled event classes lazily.
> 
> The available settings object is never modified after it has been created, so it is sufficient to publish it using a volatile.
> 
> 
> Testing: jdk/jdk/jfr
> 
> Thanks
> Erik

Thank you so much! We really appreciate the quick fix :)

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

PR Comment: https://git.openjdk.org/jdk/pull/27592#issuecomment-3374603416


More information about the hotspot-jfr-dev mailing list