RFR: 8361602: [TESTBUG] serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java deadlocks on exception
Richard Reingruber
rrich at openjdk.org
Thu Jul 10 07:30:12 UTC 2025
This pr moves the `notify()` call to the finally block to avoid the deadlock in `join()` if `verifyHeapDump(dumpFile)` throws an exception.
Testing was done with fastdebug and release builds on the main platforms and also on Linux/PPC64le and AIX.
-------------
Commit messages:
- Notify in finally block to avoid deadlock reaching there by exception
Changes: https://git.openjdk.org/jdk/pull/26213/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26213&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8361602
Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/26213.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26213/head:pull/26213
PR: https://git.openjdk.org/jdk/pull/26213
More information about the serviceability-dev
mailing list