RFR: 8253197: vmTestbase/nsk/jvmti/StopThread/stopthrd007/TestDescription.java fails with "ERROR: DebuggeeSleepingThread: ThreadDeath lost"
Patricio Chilano Mateo
pchilanomate at openjdk.java.net
Tue Sep 28 22:58:00 UTC 2021
Hi,
Please review this simple fix. As pointed out by @dholmes-ora in the bug comments, the ThreadDeath exception could be delivered and thrown while the target JavaThread is still executing within the Wicket.unlock call. To fix it I moved the unlock call inside the try block. I was able to reproduce the issue locally and verified the test now always passes with the fix.
Thanks,
Patricio
-------------
Commit messages:
- v1
Changes: https://git.openjdk.java.net/jdk/pull/5742/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5742&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8253197
Stats: 7 lines in 1 file changed: 3 ins; 3 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/5742.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5742/head:pull/5742
PR: https://git.openjdk.java.net/jdk/pull/5742
More information about the serviceability-dev
mailing list