Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/java/util/concurrent/locks/LockSupport.java
          +++ new/src/share/classes/java/util/concurrent/locks/LockSupport.java
↓ open down ↓ 192 lines elided ↑ open up ↑
 193  193       *
 194  194       * <p>If the permit is available then it is consumed and the call
 195  195       * returns immediately; otherwise the current thread becomes disabled
 196  196       * for thread scheduling purposes and lies dormant until one of four
 197  197       * things happens:
 198  198       *
 199  199       * <ul>
 200  200       * <li>Some other thread invokes {@link #unpark unpark} with the
 201  201       * current thread as the target; or
 202  202       *
 203      -     * <li>Some other thread {@linkplain Thread#interrupt interrupts} the current
 204      -     * thread; or
      203 +     * <li>Some other thread {@linkplain Thread#interrupt interrupts}
      204 +     * the current thread; or
 205  205       *
 206  206       * <li>The specified waiting time elapses; or
 207  207       *
 208  208       * <li>The call spuriously (that is, for no reason) returns.
 209  209       * </ul>
 210  210       *
 211  211       * <p>This method does <em>not</em> report which of these caused the
 212  212       * method to return. Callers should re-check the conditions which caused
 213  213       * the thread to park in the first place. Callers may also determine,
 214  214       * for example, the interrupt status of the thread, or the elapsed time
↓ open down ↓ 167 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX