Integrated: 8345493: JFR: JVM.flush hangs intermittently

Markus Grönlund mgronlun at openjdk.org
Wed Jan 15 16:21:43 UTC 2025


On Tue, 14 Jan 2025 14:35:07 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

> Greetings,
> 
> This is the fix for JDK-8345493.
> 
> Problem Summary:
> 1. Threads calling JVM.begin_recording() and JVM.end_recording() only hold the PlatformRecorder lock (not the MetadataRepository lock)
> 2. The periodic flush thread only holds the MetadataRepository lock, not the PlatformRecorder lock.
> 
> Problem solution:
> The periodic flush thread must acquire both the PlatformRecorder lock and the MetadataRepository lock (in that order). 
> 
> Testing: jdk_jfr, stress testing.
> 
> Thanks
> Markus

This pull request has now been integrated.

Changeset: 4257215a
Author:    Markus Grönlund <mgronlun at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4257215a9fa02f74ccd4fc62893d4b1a232a8754
Stats:     9 lines in 2 files changed: 7 ins; 0 del; 2 mod

8345493: JFR: JVM.flush hangs intermittently

Reviewed-by: egahlin

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

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


More information about the hotspot-jfr-dev mailing list