--- old/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java 2018-10-12 20:20:11.000000000 -0700 +++ new/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java 2018-10-12 20:20:10.000000000 -0700 @@ -196,7 +196,7 @@ */ @ForceInline public Object getObject(Object o, long offset) { - return theInternalUnsafe.getObject(o, offset); + return theInternalUnsafe.getReference(o, offset); } /** @@ -211,7 +211,7 @@ */ @ForceInline public void putObject(Object o, long offset, Object x) { - theInternalUnsafe.putObject(o, offset, x); + theInternalUnsafe.putReference(o, offset, x); } /** @see #getInt(Object, long) */ @@ -860,7 +860,7 @@ public final boolean compareAndSwapObject(Object o, long offset, Object expected, Object x) { - return theInternalUnsafe.compareAndSetObject(o, offset, expected, x); + return theInternalUnsafe.compareAndSetReference(o, offset, expected, x); } /** @@ -901,7 +901,7 @@ */ @ForceInline public Object getObjectVolatile(Object o, long offset) { - return theInternalUnsafe.getObjectVolatile(o, offset); + return theInternalUnsafe.getReferenceVolatile(o, offset); } /** @@ -910,7 +910,7 @@ */ @ForceInline public void putObjectVolatile(Object o, long offset, Object x) { - theInternalUnsafe.putObjectVolatile(o, offset, x); + theInternalUnsafe.putReferenceVolatile(o, offset, x); } /** Volatile version of {@link #getInt(Object, long)} */ @@ -1020,7 +1020,7 @@ */ @ForceInline public void putOrderedObject(Object o, long offset, Object x) { - theInternalUnsafe.putObjectRelease(o, offset, x); + theInternalUnsafe.putReferenceRelease(o, offset, x); } /** Ordered/Lazy version of {@link #putIntVolatile(Object, long, int)} */ @@ -1168,7 +1168,7 @@ */ @ForceInline public final Object getAndSetObject(Object o, long offset, Object newValue) { - return theInternalUnsafe.getAndSetObject(o, offset, newValue); + return theInternalUnsafe.getAndSetReference(o, offset, newValue); }