RFR: 8373439: Deadlock between flight recorder & VMDeath [v2]

Leonid Mesnik lmesnik at openjdk.org
Wed Jan 21 16:02:08 UTC 2026


On Tue, 16 Dec 2025 09:08:25 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
>
> Bara' Hasheesh has updated the pull request incrementally with one additional commit since the last revision:
> 
>   flags

src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecorder.java line 560:

> 558:         copy.setStopTime(r.getStopTime());
> 559:         copy.setFlushInterval(r.getFlushInterval());
> 560:         copy.setDummyRecording(r.isDummyRecording());

Not a review and I am not planning to review the fix itself.
Could you please change PR and bug summary. The VMDeath is jvmti event so the bug is misleading.
Something
"Deadlock between flight recorder & VM shutdown"
would be better.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28767#discussion_r2713227258


More information about the hotspot-jfr-dev mailing list