[jdk25] RFR: 8361602: [TESTBUG] serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java deadlocks on exception

Christoph Langer clanger at openjdk.org
Mon Jul 14 07:39:39 UTC 2025


On Sat, 12 Jul 2025 08:27:19 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

> This pull request contains a backport of commit [917d0182](https://github.com/openjdk/jdk/commit/917d0182cb5ea6066afd396381ca4650371e64b0) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
> It moves the notify() call to the finally block to avoid the deadlock in join() if verifyHeapDump(dumpFile) throws an exception. It also wraps the wait into a loop to protect against spurious wake up.
> 
> The commit being backported was authored by Richard Reingruber on 12 Jul 2025 and was reviewed by Chris Plummer, Christoph Langer and David Holmes.
> 
> Testing was done with fastdebug and release builds on the main platforms and also on Linux/PPC64le and AIX.

Marked as reviewed by clanger (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/26279#pullrequestreview-3015092367


More information about the serviceability-dev mailing list