hotspot/src/os/windows/vm/os_windows.cpp
changeset 25472 381638db28e6
parent 25468 5331df506290
child 25477 7dad9f95fd31
equal deleted inserted replaced
25471:3ab9867d7786 25472:381638db28e6
  4874   // Transitions for _Event:
  4874   // Transitions for _Event:
  4875   //    0 :=> 1
  4875   //    0 :=> 1
  4876   //    1 :=> 1
  4876   //    1 :=> 1
  4877   //   -1 :=> either 0 or 1; must signal target thread
  4877   //   -1 :=> either 0 or 1; must signal target thread
  4878   //          That is, we can safely transition _Event from -1 to either
  4878   //          That is, we can safely transition _Event from -1 to either
  4879   //          0 or 1. Forcing 1 is slightly more efficient for back-to-back
  4879   //          0 or 1.
  4880   //          unpark() calls.
       
  4881   // See also: "Semaphores in Plan 9" by Mullender & Cox
  4880   // See also: "Semaphores in Plan 9" by Mullender & Cox
  4882   //
  4881   //
  4883   // Note: Forcing a transition from "-1" to "1" on an unpark() means
  4882   // Note: Forcing a transition from "-1" to "1" on an unpark() means
  4884   // that it will take two back-to-back park() calls for the owning
  4883   // that it will take two back-to-back park() calls for the owning
  4885   // thread to block. This has the benefit of forcing a spurious return
  4884   // thread to block. This has the benefit of forcing a spurious return