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

Erik Gahlin egahlin at openjdk.org
Thu Oct 2 15:54:56 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

This pull request has now been integrated.

Changeset: 5fccabff
Author:    Erik Gahlin <egahlin at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5fccabff15ae8bcc3d03156fa331bbc0fefb0cbe
Stats:     2 lines in 2 files changed: 0 ins; 0 del; 2 mod

8368670: Deadlock in JFR on event register + class load

Reviewed-by: mgronlun

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

PR: https://git.openjdk.org/jdk/pull/27592


More information about the hotspot-jfr-dev mailing list