mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
Reviewed-by: dholmes, thartmann
This commit is contained in:
parent
fd8d1cd6bf
commit
5e6d6b8642
70 changed files with 643 additions and 603 deletions
|
@ -196,7 +196,7 @@ public final class Unsafe {
|
|||
*/
|
||||
@ForceInline
|
||||
public Object getObject(Object o, long offset) {
|
||||
return theInternalUnsafe.getObject(o, offset);
|
||||
return theInternalUnsafe.getReference(o, offset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -211,7 +211,7 @@ public final class Unsafe {
|
|||
*/
|
||||
@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 class Unsafe {
|
|||
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 @@ public final class Unsafe {
|
|||
*/
|
||||
@ForceInline
|
||||
public Object getObjectVolatile(Object o, long offset) {
|
||||
return theInternalUnsafe.getObjectVolatile(o, offset);
|
||||
return theInternalUnsafe.getReferenceVolatile(o, offset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -910,7 +910,7 @@ public final class Unsafe {
|
|||
*/
|
||||
@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 @@ public final class Unsafe {
|
|||
*/
|
||||
@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 @@ public final class Unsafe {
|
|||
*/
|
||||
@ForceInline
|
||||
public final Object getAndSetObject(Object o, long offset, Object newValue) {
|
||||
return theInternalUnsafe.getAndSetObject(o, offset, newValue);
|
||||
return theInternalUnsafe.getAndSetReference(o, offset, newValue);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue