[rfc][icedtea-web] Cache Locking Tests : Potential Deadlock Fix
Jiri Vanek
jvanek at redhat.com
Wed Sep 24 16:01:46 UTC 2014
On 09/23/2014 05:07 PM, Jie Kang wrote:
> 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,
>
Uff... Quite hard to understand what is this supposed to do. ANyway - why the sleeps here?
J.
More information about the distro-pkg-dev
mailing list