Fwd: Patch: Clean up fix for JDK-8047720
Carsten Varming
varming at gmail.com
Tue Feb 3 19:00:57 UTC 2015
Greetings all,
I was recently introduced to the deadlock described in JDK-8047720 and
fixed in JDK9. The fix seems a little messy to me, and it looks like it
left some very short races in the code. So I decided to clean up the code.
See attached diff.
The change takes a step back and acquires PeriodicTask_lock in
WatcherThread::stop (like before the fix in JDK9), but this time safepoints
are allowed to proceed when acquiring PeriodicTask_lock, preventing the
deadlock.
Let me know what you think,
Carsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20150203/96859615/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 1541 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20150203/96859615/patch.obj>
More information about the serviceability-dev
mailing list