RFR: 8373439: Deadlock between flight recorder & VMDeath
Erik Gahlin
egahlin at openjdk.org
Fri Dec 12 17:10:54 UTC 2025
On Thu, 11 Dec 2025 15:19:51 GMT, Bara' Hasheesh <duke at openjdk.org> wrote:
> A simple `PlatformRecorder.isInShutDown` check is added to `PlatformRecording.start` to prevent any new recording from start after the JVM initiates it's shutdown hooks
>
> A new test was added that fails without the change & passes with it
>
> I also ran `tier1`, `tier2` as well as `jdk_jfr` on Linux x86
src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java line 108:
> 106: synchronized (recorder) {
> 107: if (PlatformRecorder.isInShutDown()) {
> 108: throw new IllegalStateException("Flight recorder is already shutdown");
I need to think about if throwing ISE is the best alternative here.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28767#discussion_r2614980643
More information about the hotspot-jfr-dev
mailing list