RFR: 8368670: Deadlock in JFR on event register + class load
Markus Grönlund
mgronlun at openjdk.org
Thu Oct 2 11:21:47 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
Nice.
-------------
Marked as reviewed by mgronlun (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/27592#pullrequestreview-3294066759
More information about the hotspot-jfr-dev
mailing list