This class may be removed in the future. Consider the replacements in JEP 193 'Variable Handles': http://openjdk.java.net/jeps/193
@Override public int getIntVolatile(long byteIndex) { return unsafe.getIntVolatile(null, baseAdress + byteIndex); }
@Override public int getIntVolatile(long byteIndex) { return unsafe.getIntVolatile(base, off + byteIndex); }
public static int getIntVolatile( Object obj, long offset ) { return unsafe.getIntVolatile( obj, offset ); }
@Override public int size() { // size read needs to by volatile so that changes are visible return UNSAFE.getIntVolatile(this, SIZE_OFFSET); }
/** * Gets integer value with volatile semantic. * * @param obj Object. * @param off Offset. * @return Integer value. */ public static int getIntVolatile(Object obj, long off) { return UNSAFE.getIntVolatile(obj, off); }
@Override public boolean peekDocument() { int header = UnsafeMemory.UNSAFE.getIntVolatile(null, address); return header > 0x0 | header == Wires.END_OF_DATA; }
protected final boolean isReadReleased(long offset) { return UNSAFE.getIntVolatile(null, offset) == READ_RELEASE_INDICATOR; }
@Override public int getIntVolatile(long byteIndex) { return unsafe.getIntVolatile(null, baseAdress + byteIndex); }
private int getRaw(long offset) { return unsafe.getIntVolatile(array, offset); }
@Override public int getIntVolatile(long byteIndex) { return unsafe.getIntVolatile(base, off + byteIndex); }
public int getIntVolatile(Object o, long offset) { return this.unsafe.getIntVolatile(o, offset); }
final int currentStatus() { return Unsafe.instance.getIntVolatile(this, statusOffset); }
public int getIntVolatile(Object target, long offset) { return unsafe.getIntVolatile(target, offset); }
public static int getIntVolatile( long address ) { checkAccess( address, Integer.BYTES ); return unsafe.getIntVolatile( null, address ); }
public int getIntVolatile(final int index) { if (SHOULD_BOUNDS_CHECK) { boundsCheck0(index, SIZE_OF_INT); } return UNSAFE.getIntVolatile(byteArray, addressOffset + index); }
public int getIntVolatile(final long index) { if (SHOULD_BOUNDS_CHECK) { boundsCheck0(index, SIZE_OF_INT); } return UNSAFE.getIntVolatile(null, addressOffset + index); }
public final int get(T obj) { if (obj == null || obj.getClass() != tclass || cclass != null) fullCheck(obj); return unsafe.getIntVolatile(obj, offset); }
/** * @see Sequencer#isAvailable(long) */ @Override public boolean isAvailable(long sequence) { int index = calculateIndex(sequence); int flag = calculateAvailabilityFlag(sequence); long bufferAddress = (index * SCALE) + BASE; return UNSAFE.getIntVolatile(availableBuffer, bufferAddress) == flag; }
/** * @see Sequencer#isAvailable(long) */ @Override public boolean isAvailable(long sequence) { int index = calculateIndex(sequence); int flag = calculateAvailabilityFlag(sequence); long bufferAddress = (index * SCALE) + BASE; return UNSAFE.getIntVolatile(availableBuffer, bufferAddress) == flag; }
/** * See {@code RingBufferProducer.isAvailable(long)} */ boolean isAvailable(long sequence) { int index = calculateIndex(sequence); int flag = calculateAvailabilityFlag(sequence); long bufferAddress = (index * SCALE) + BASE; return UNSAFE.getIntVolatile(availableBuffer, bufferAddress) == flag; }