< prev index next >

src/java.base/share/classes/java/lang/invoke/X-VarHandleMemoryAddressView.java.template

Print this page

        

*** 35,44 **** --- 35,46 ---- final class VarHandleMemoryAddressAs$Type$s { static final boolean BE = UNSAFE.isBigEndian(); + static final int VM_ALIGN = $BoxType$.BYTES - 1; + #if[floatingPoint] @ForceInline static $rawType$ convEndian(boolean big, $type$ v) { $rawType$ rv = $Type$.$type$ToRaw$RawType$Bits(v); return big == BE ? rv : $RawBoxType$.reverseBytes(rv);
*** 69,81 **** oo.checkAccess(offset, length, ro); return oo; } @ForceInline ! static long offset(MemoryAddressProxy bb, long offset, long alignment) { long address = bb.unsafeGetOffset() + offset; ! if ((address & alignment) != 0) { throw VarHandleMemoryAddressBase.newIllegalStateExceptionForMisalignedAccess(address); } return address; } --- 71,95 ---- oo.checkAccess(offset, length, ro); return oo; } @ForceInline ! static long offset(MemoryAddressProxy bb, long offset, long alignmentMask) { ! long address = bb.unsafeGetOffset() + offset; ! if ((address & alignmentMask) != 0) { ! throw VarHandleMemoryAddressBase.newIllegalStateExceptionForMisalignedAccess(address); ! } ! if ((address & VM_ALIGN) != 0) { ! throw VarHandleMemoryAddressBase.newIllegalStateExceptionForMisalignedAccess(address); ! } ! return address; ! } ! ! @ForceInline ! static long offsetNoVMAlignCheck(MemoryAddressProxy bb, long offset, long alignmentMask) { long address = bb.unsafeGetOffset() + offset; ! if ((address & alignmentMask) != 0) { throw VarHandleMemoryAddressBase.newIllegalStateExceptionForMisalignedAccess(address); } return address; }
*** 83,104 **** static $type$ get0(VarHandleMemoryAddressBase handle, Object obb, long base) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, true); #if[floatingPoint] $rawType$ rawValue = UNSAFE.get$RawType$Unaligned( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), handle.be); return $Type$.$rawType$BitsTo$Type$(rawValue); #else[floatingPoint] #if[byte] return UNSAFE.get$Type$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment)); #else[byte] return UNSAFE.get$Type$Unaligned( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), handle.be); #end[byte] #end[floatingPoint] } --- 97,118 ---- static $type$ get0(VarHandleMemoryAddressBase handle, Object obb, long base) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, true); #if[floatingPoint] $rawType$ rawValue = UNSAFE.get$RawType$Unaligned( bb.unsafeGetBase(), ! offsetNoVMAlignCheck(bb, base, handle.alignmentMask), handle.be); return $Type$.$rawType$BitsTo$Type$(rawValue); #else[floatingPoint] #if[byte] return UNSAFE.get$Type$( bb.unsafeGetBase(), ! offsetNoVMAlignCheck(bb, base, handle.alignmentMask)); #else[byte] return UNSAFE.get$Type$Unaligned( bb.unsafeGetBase(), ! offsetNoVMAlignCheck(bb, base, handle.alignmentMask), handle.be); #end[byte] #end[floatingPoint] }
*** 106,128 **** static void set0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); #if[floatingPoint] UNSAFE.put$RawType$Unaligned( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), $Type$.$type$ToRaw$RawType$Bits(value), handle.be); #else[floatingPoint] #if[byte] UNSAFE.put$Type$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); #else[byte] UNSAFE.put$Type$Unaligned( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value, handle.be); #end[byte] #end[floatingPoint] } --- 120,142 ---- static void set0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); #if[floatingPoint] UNSAFE.put$RawType$Unaligned( bb.unsafeGetBase(), ! offsetNoVMAlignCheck(bb, base, handle.alignmentMask), $Type$.$type$ToRaw$RawType$Bits(value), handle.be); #else[floatingPoint] #if[byte] UNSAFE.put$Type$( bb.unsafeGetBase(), ! offsetNoVMAlignCheck(bb, base, handle.alignmentMask), value); #else[byte] UNSAFE.put$Type$Unaligned( bb.unsafeGetBase(), ! offsetNoVMAlignCheck(bb, base, handle.alignmentMask), value, handle.be); #end[byte] #end[floatingPoint] }
*** 131,291 **** static $type$ getVolatile0(VarHandleMemoryAddressBase handle, Object obb, long base) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, UNSAFE.get$RawType$Volatile( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment))); } @ForceInline static void setVolatile0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); UNSAFE.put$RawType$Volatile( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, value)); } @ForceInline static $type$ getAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, UNSAFE.get$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment))); } @ForceInline static void setRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); UNSAFE.put$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, value)); } @ForceInline static $type$ getOpaque0(VarHandleMemoryAddressBase handle, Object obb, long base) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, UNSAFE.get$RawType$Opaque( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment))); } @ForceInline static void setOpaque0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); UNSAFE.put$RawType$Opaque( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, value)); } #if[CAS] @ForceInline static boolean compareAndSet0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.compareAndSet$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static $type$ compareAndExchange0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.compareAndExchange$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, expected), convEndian(handle.be, value))); } @ForceInline static $type$ compareAndExchangeAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.compareAndExchange$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, expected), convEndian(handle.be, value))); } @ForceInline static $type$ compareAndExchangeRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.compareAndExchange$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, expected), convEndian(handle.be, value))); } @ForceInline static boolean weakCompareAndSetPlain0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.weakCompareAndSet$RawType$Plain( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static boolean weakCompareAndSet0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.weakCompareAndSet$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static boolean weakCompareAndSetAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.weakCompareAndSet$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static boolean weakCompareAndSetRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.weakCompareAndSet$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static $type$ getAndSet0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.getAndSet$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, value))); } @ForceInline static $type$ getAndSetAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.getAndSet$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, value))); } @ForceInline static $type$ getAndSetRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.getAndSet$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), convEndian(handle.be, value))); } #end[CAS] #if[AtomicAdd] --- 145,305 ---- static $type$ getVolatile0(VarHandleMemoryAddressBase handle, Object obb, long base) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, UNSAFE.get$RawType$Volatile( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask))); } @ForceInline static void setVolatile0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); UNSAFE.put$RawType$Volatile( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, value)); } @ForceInline static $type$ getAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, UNSAFE.get$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask))); } @ForceInline static void setRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); UNSAFE.put$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, value)); } @ForceInline static $type$ getOpaque0(VarHandleMemoryAddressBase handle, Object obb, long base) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, true); return convEndian(handle.be, UNSAFE.get$RawType$Opaque( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask))); } @ForceInline static void setOpaque0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); UNSAFE.put$RawType$Opaque( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, value)); } #if[CAS] @ForceInline static boolean compareAndSet0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.compareAndSet$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static $type$ compareAndExchange0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.compareAndExchange$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, expected), convEndian(handle.be, value))); } @ForceInline static $type$ compareAndExchangeAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.compareAndExchange$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, expected), convEndian(handle.be, value))); } @ForceInline static $type$ compareAndExchangeRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.compareAndExchange$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, expected), convEndian(handle.be, value))); } @ForceInline static boolean weakCompareAndSetPlain0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.weakCompareAndSet$RawType$Plain( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static boolean weakCompareAndSet0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.weakCompareAndSet$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static boolean weakCompareAndSetAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.weakCompareAndSet$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static boolean weakCompareAndSetRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ expected, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return UNSAFE.weakCompareAndSet$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, expected), convEndian(handle.be, value)); } @ForceInline static $type$ getAndSet0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.getAndSet$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, value))); } @ForceInline static $type$ getAndSetAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.getAndSet$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, value))); } @ForceInline static $type$ getAndSetRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); return convEndian(handle.be, UNSAFE.getAndSet$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), convEndian(handle.be, value))); } #end[CAS] #if[AtomicAdd]
*** 293,332 **** static $type$ getAndAdd0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ delta) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndAdd$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), delta); } else { ! return getAndAddConvEndianWithCAS(bb, offset(bb, base, handle.alignment), delta); } } @ForceInline static $type$ getAndAddAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ delta) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndAdd$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), delta); } else { ! return getAndAddConvEndianWithCAS(bb, offset(bb, base, handle.alignment), delta); } } @ForceInline static $type$ getAndAddRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ delta) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndAdd$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), delta); } else { ! return getAndAddConvEndianWithCAS(bb, offset(bb, base, handle.alignment), delta); } } @ForceInline static $type$ getAndAddConvEndianWithCAS(MemoryAddressProxy bb, long offset, $type$ delta) { --- 307,346 ---- static $type$ getAndAdd0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ delta) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndAdd$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), delta); } else { ! return getAndAddConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), delta); } } @ForceInline static $type$ getAndAddAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ delta) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndAdd$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), delta); } else { ! return getAndAddConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), delta); } } @ForceInline static $type$ getAndAddRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ delta) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndAdd$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), delta); } else { ! return getAndAddConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), delta); } } @ForceInline static $type$ getAndAddConvEndianWithCAS(MemoryAddressProxy bb, long offset, $type$ delta) {
*** 346,385 **** static $type$ getAndBitwiseOr0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseOr$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseOrConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseOrRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseOr$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseOrConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseOrAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseOr$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseOrConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseOrConvEndianWithCAS(MemoryAddressProxy bb, long offset, $type$ value) { --- 360,399 ---- static $type$ getAndBitwiseOr0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseOr$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseOrConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseOrRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseOr$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseOrConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseOrAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseOr$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseOrConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseOrConvEndianWithCAS(MemoryAddressProxy bb, long offset, $type$ value) {
*** 397,436 **** static $type$ getAndBitwiseAnd0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseAnd$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseAndConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseAndRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseAnd$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseAndConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseAndAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseAnd$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseAndConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseAndConvEndianWithCAS(MemoryAddressProxy bb, long offset, $type$ value) { --- 411,450 ---- static $type$ getAndBitwiseAnd0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseAnd$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseAndConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseAndRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseAnd$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseAndConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseAndAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseAnd$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseAndConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseAndConvEndianWithCAS(MemoryAddressProxy bb, long offset, $type$ value) {
*** 449,488 **** static $type$ getAndBitwiseXor0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseXor$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseXorConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseXorRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseXor$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseXorConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseXorAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseXor$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignment), value); } else { ! return getAndBitwiseXorConvEndianWithCAS(bb, offset(bb, base, handle.alignment), value); } } @ForceInline static $type$ getAndBitwiseXorConvEndianWithCAS(MemoryAddressProxy bb, long offset, $type$ value) { --- 463,502 ---- static $type$ getAndBitwiseXor0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseXor$RawType$( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseXorConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseXorRelease0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseXor$RawType$Release( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseXorConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseXorAcquire0(VarHandleMemoryAddressBase handle, Object obb, long base, $type$ value) { MemoryAddressProxy bb = checkAddress(obb, base, handle.length, false); if (handle.be == BE) { return UNSAFE.getAndBitwiseXor$RawType$Acquire( bb.unsafeGetBase(), ! offset(bb, base, handle.alignmentMask), value); } else { ! return getAndBitwiseXorConvEndianWithCAS(bb, offset(bb, base, handle.alignmentMask), value); } } @ForceInline static $type$ getAndBitwiseXorConvEndianWithCAS(MemoryAddressProxy bb, long offset, $type$ value) {
< prev index next >