< prev index next >
src/java.base/share/classes/jdk/internal/misc/Unsafe.java
Print this page
rev 58552 : [mq]: 8241727-Typos-empty-lines-in-javadoc-inconsistent-indents-etc
*** 881,891 ****
checkPrimitivePointer(srcBase, srcOffset);
checkPrimitivePointer(destBase, destOffset);
}
! /**
* Copies all elements from one block of memory to another block, byte swapping the
* elements on the fly.
*
* This provides a <em>single-register</em> addressing mode, as
* discussed in {@link #getInt(Object,long)}.
--- 881,891 ----
checkPrimitivePointer(srcBase, srcOffset);
checkPrimitivePointer(destBase, destOffset);
}
! /**
* Copies all elements from one block of memory to another block, byte swapping the
* elements on the fly.
*
* This provides a <em>single-register</em> addressing mode, as
* discussed in {@link #getInt(Object,long)}.
*** 2222,2239 ****
public final double getDoubleAcquire(Object o, long offset) {
return getDoubleVolatile(o, offset);
}
/*
! * Versions of {@link #putReferenceVolatile(Object, long, Object)}
! * that do not guarantee immediate visibility of the store to
! * other threads. This method is generally only useful if the
! * underlying field is a Java volatile (or if an array cell, one
! * that is otherwise only accessed using volatile accesses).
! *
! * Corresponds to C11 atomic_store_explicit(..., memory_order_release).
! */
/** Release version of {@link #putReferenceVolatile(Object, long, Object)} */
@HotSpotIntrinsicCandidate
public final void putReferenceRelease(Object o, long offset, Object x) {
putReferenceVolatile(o, offset, x);
--- 2222,2239 ----
public final double getDoubleAcquire(Object o, long offset) {
return getDoubleVolatile(o, offset);
}
/*
! * Versions of {@link #putReferenceVolatile(Object, long, Object)}
! * that do not guarantee immediate visibility of the store to
! * other threads. This method is generally only useful if the
! * underlying field is a Java volatile (or if an array cell, one
! * that is otherwise only accessed using volatile accesses).
! *
! * Corresponds to C11 atomic_store_explicit(..., memory_order_release).
! */
/** Release version of {@link #putReferenceVolatile(Object, long, Object)} */
@HotSpotIntrinsicCandidate
public final void putReferenceRelease(Object o, long offset, Object x) {
putReferenceVolatile(o, offset, x);
< prev index next >