[rfc][icedtea-web] Cache Locking Tests : Potential Deadlock Fix
Jie Kang
jkang at redhat.com
Tue Sep 23 15:07:37 UTC 2014
Hello,
Jiri reported deadlock occurring in the unit tests for CacheLRUWrapper. This most likely occurred in the multi-threaded test where the parent thread sleeps for 2 seconds, before attempting to wake the sleeping children. If the children have not completed their tasks within two seconds, they will not be waiting for the parent thread to wake them, and a deadlock can occur. This issue could also occur in CacheEntry, which has a multi-threaded test that functions similarly. This patch resolves the problem. Sorry for the mistake.
Regards,
--
Jie Kang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itw-cachelock-deadlock-1.patch
Type: text/x-patch
Size: 7629 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140923/2e2305eb/itw-cachelock-deadlock-1-0001.patch>
More information about the distro-pkg-dev
mailing list