RFR: 8373439: Deadlock between flight recorder & VMDeath
Bara' Hasheesh
duke at openjdk.org
Fri Dec 12 16:01:29 UTC 2025
On Fri, 12 Dec 2025 14:47:00 GMT, Thomas Stuefe <stuefe 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
>
> @Baraa-Hasheesh would this be a solution for https://bugs.openjdk.org/browse/JDK-8373257?
@tstuefe From the ticket description that looks like a different deadlock
The deadlock here happens as the `JfrPostBox` will wait infinitely on the `recorderthread` to process it's message, but that thread already exited due to call of `PlatformRecorder.destroy -> JVMSupport.destroyJFR -> JVM.destroyJFR`
Your case seems to be deadlocking somewhere else
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28767#issuecomment-3647155450
More information about the hotspot-jfr-dev
mailing list