< prev index next >

jdk/src/java.base/share/classes/jdk/internal/misc/Unsafe.java

Print this page

        

*** 28,38 **** import java.lang.reflect.Field; import java.security.ProtectionDomain; import sun.reflect.CallerSensitive; import sun.reflect.Reflection; ! import jdk.internal.misc.VM; import jdk.internal.HotSpotIntrinsicCandidate; /** --- 28,38 ---- import java.lang.reflect.Field; import java.security.ProtectionDomain; import sun.reflect.CallerSensitive; import sun.reflect.Reflection; ! import sun.misc.VM; import jdk.internal.HotSpotIntrinsicCandidate; /**
*** 1079,1089 **** * null * @param offset The offset in bytes from the start of the object * @return the value fetched from the indicated object * @throws RuntimeException No defined exceptions are thrown, not even * {@link NullPointerException} ! * @since 1.9 */ @HotSpotIntrinsicCandidate public final long getLongUnaligned(Object o, long offset) { if ((offset & 7) == 0) { return getLong(o, offset); --- 1079,1089 ---- * null * @param offset The offset in bytes from the start of the object * @return the value fetched from the indicated object * @throws RuntimeException No defined exceptions are thrown, not even * {@link NullPointerException} ! * @since 9 */ @HotSpotIntrinsicCandidate public final long getLongUnaligned(Object o, long offset) { if ((offset & 7) == 0) { return getLong(o, offset);
*** 1113,1123 **** * * @param o Java heap object in which the variable resides * @param offset The offset in bytes from the start of the object * @param bigEndian The endianness of the value * @return the value fetched from the indicated object ! * @since 1.9 */ public final long getLongUnaligned(Object o, long offset, boolean bigEndian) { return convEndian(bigEndian, getLongUnaligned(o, offset)); } --- 1113,1123 ---- * * @param o Java heap object in which the variable resides * @param offset The offset in bytes from the start of the object * @param bigEndian The endianness of the value * @return the value fetched from the indicated object ! * @since 9 */ public final long getLongUnaligned(Object o, long offset, boolean bigEndian) { return convEndian(bigEndian, getLongUnaligned(o, offset)); }
*** 1191,1201 **** * null * @param offset The offset in bytes from the start of the object * @param x the value to store * @throws RuntimeException No defined exceptions are thrown, not even * {@link NullPointerException} ! * @since 1.9 */ @HotSpotIntrinsicCandidate public final void putLongUnaligned(Object o, long offset, long x) { if ((offset & 7) == 0) { putLong(o, offset, x); --- 1191,1201 ---- * null * @param offset The offset in bytes from the start of the object * @param x the value to store * @throws RuntimeException No defined exceptions are thrown, not even * {@link NullPointerException} ! * @since 9 */ @HotSpotIntrinsicCandidate public final void putLongUnaligned(Object o, long offset, long x) { if ((offset & 7) == 0) { putLong(o, offset, x);
*** 1229,1239 **** * @param offset The offset in bytes from the start of the object * @param x the value to store * @param bigEndian The endianness of the value * @throws RuntimeException No defined exceptions are thrown, not even * {@link NullPointerException} ! * @since 1.9 */ public final void putLongUnaligned(Object o, long offset, long x, boolean bigEndian) { putLongUnaligned(o, offset, convEndian(bigEndian, x)); } --- 1229,1239 ---- * @param offset The offset in bytes from the start of the object * @param x the value to store * @param bigEndian The endianness of the value * @throws RuntimeException No defined exceptions are thrown, not even * {@link NullPointerException} ! * @since 9 */ public final void putLongUnaligned(Object o, long offset, long x, boolean bigEndian) { putLongUnaligned(o, offset, convEndian(bigEndian, x)); }
< prev index next >