src/java.base/share/classes/java/util/concurrent/locks/LockSupport.java
changeset 49491 f7363de371c9
parent 47216 71c04702a3d5
child 52220 9c260a6b6471
--- a/src/java.base/share/classes/java/util/concurrent/locks/LockSupport.java	Thu Mar 29 16:21:54 2018 -0700
+++ b/src/java.base/share/classes/java/util/concurrent/locks/LockSupport.java	Thu Mar 29 16:23:35 2018 -0700
@@ -412,11 +412,11 @@
     /**
      * Returns the thread id for the given thread.  We must access
      * this directly rather than via method Thread.getId() because
-     * getId() is not final, and has been known to be overridden in
-     * ways that do not preserve unique mappings.
+     * getId() has been known to be overridden in ways that do not
+     * preserve unique mappings.
      */
     static final long getThreadId(Thread thread) {
-        return U.getLongVolatile(thread, TID);
+        return U.getLong(thread, TID);
     }
 
     // Hotspot implementation via intrinsics API