RFR 8150689: Thread dump report "waiting to re-lock in wait()" shows incorrectly

Patricio Chilano patricio.chilano.mateo at oracle.com
Tue Nov 20 17:51:21 UTC 2018


Hi all,

Could you review this small fix for thread dump reports?
Now the "waiting to re-lock in wait()" message is shown in the "at 
java.lang.Object.wait(Native Method)" frame where the re-locking is 
actually occurring. In the frame where the lock was first taken we 
always show "locked". Please check if there is some scenario where you 
think the lock info on the stack is not being printed as you would expect.

I also noticed the _thread_state attribute was printed twice so I 
removed one instance. I don't know if there was a specific reason to 
print it twice so I can add it back.

Webrev URL: http://cr.openjdk.java.net/~pchilanomate/8150689.01/webrev
Bug URL: https://bugs.openjdk.java.net/browse/JDK-8150689

Thanks,
Patricio


More information about the hotspot-runtime-dev mailing list