Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
Description
When thread is being interrupted during after entering condvar_wait_impl and checking INTERRUPTED flag and before waiting on condition InterruptedException is not thrown. Patch from HARMONY-1789 could solve this issue by introducing special interrupter thread that would wait for condition to be waited on and corresponding mutex unlocked and interrupt the thread only after that. Patch from HARMONY-2217 removed interrupter thread.
Salikh wrote test which shows the bug and it shows that same bug appears in Sun's JDK 1.5.0_05.