src/java.base/share/classes/java/util/concurrent/locks/StampedLock.java

Print this page
rev 12972 : 8140606: Update library code to use internal Unsafe
Reviewed-by: duke

*** 1396,1406 **** } return (interrupted || Thread.interrupted()) ? INTERRUPTED : 0L; } // Unsafe mechanics ! private static final sun.misc.Unsafe U = sun.misc.Unsafe.getUnsafe(); private static final long STATE; private static final long WHEAD; private static final long WTAIL; private static final long WNEXT; private static final long WSTATUS; --- 1396,1406 ---- } return (interrupted || Thread.interrupted()) ? INTERRUPTED : 0L; } // Unsafe mechanics ! private static final jdk.internal.misc.Unsafe U = jdk.internal.misc.Unsafe.getUnsafe(); private static final long STATE; private static final long WHEAD; private static final long WTAIL; private static final long WNEXT; private static final long WSTATUS;