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

Richard Reingruber rrich at openjdk.org
Sat Jul 12 05:43:53 UTC 2025


On Fri, 11 Jul 2025 08:30:57 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

>> 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.
>
> Richard Reingruber has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Last line is incomplete (acc. to POSIX). Add newline.
>  - `done` shouldn't be public

Thanks for the reviews.

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

PR Comment: https://git.openjdk.org/jdk/pull/26213#issuecomment-3064709312


More information about the serviceability-dev mailing list