static { try { C_INDEX_OFFSET = PlatformDependent0.UNSAFE.objectFieldOffset( MpscArrayQueueConsumerField.class.getDeclaredField("consumerIndex")); } catch (NoSuchFieldException e) { throw new RuntimeException(e); } }
protected void soConsumerIndex(long l) { PlatformDependent0.UNSAFE.putOrderedLong(this, C_INDEX_OFFSET, l); }
protected final boolean casProducerIndex(long expect, long newValue) { return PlatformDependent0.UNSAFE.compareAndSwapLong(this, P_INDEX_OFFSET, expect, newValue); }