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

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

*** 392,402 **** U.putInt(t, SECONDARY, r); return r; } // Hotspot implementation via intrinsics API ! private static final sun.misc.Unsafe U = sun.misc.Unsafe.getUnsafe(); private static final long PARKBLOCKER; private static final long SECONDARY; static { try { PARKBLOCKER = U.objectFieldOffset --- 392,402 ---- U.putInt(t, SECONDARY, r); return r; } // Hotspot implementation via intrinsics API ! private static final jdk.internal.misc.Unsafe U = jdk.internal.misc.Unsafe.getUnsafe(); private static final long PARKBLOCKER; private static final long SECONDARY; static { try { PARKBLOCKER = U.objectFieldOffset