You need to sign in or sign up before continuing.
  • M
    6498581: ThreadInterruptTest3 produces wrong output on Windows · 195d273c
    minqi 提交于
    Summary: There is race condition between os::interrupt and os::is_interrupted on Windows. In JVM_Sleep(Thread.sleep), check if thread gets interrupted, it may see interrupted but not really interrupted so cause spurious waking up (early return from sleep). Fix by checking if interrupt event really gets set thus prevent false return. For intrinsic of _isInterrupted, on Windows, go fastpath only on bit not set.
    Reviewed-by: acorn, kvn
    Contributed-by: david.holmes@oracle.com, yumin.qi@oracle.com
    195d273c
os_windows.cpp 192.3 KB