Top Inners Fields Constructors Methods
java.lang.invoke

pack-priv final Class VarHandleByteArrayAsLongs

extends VarHandleByteArrayBase
Class Inheritance
Imports
jdk.internal.access.JavaNioAccess, .SharedSecrets, jdk.internal.foreign.AbstractMemorySegmentImpl, .MemorySessionImpl, jdk.internal.misc.ScopedMemoryAccess, .Unsafe, jdk.internal.util.Preconditions, jdk.internal.vm.annotation.ForceInline, java.lang.foreign.MemorySegment, java.nio.ByteBuffer, .ReadOnlyBufferException, java.util.List, .Objects, java.util.function.BiFunction

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv abstract static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final JavaNioAccess
pack-priv static final ScopedMemoryAccess
Inherited from java.lang.invoke.VarHandleByteArrayBase:
BEBUFFER_ADDRESSBUFFER_LIMITBYTE_BUFFER_HBBYTE_BUFFER_IS_READ_ONLY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static long
convEndian(boolean big, long n)

Inherited from java.lang.invoke.VarHandleByteArrayBase:
newIllegalStateExceptionForMisalignedAccess

Field Detail

ALIGNback to summary
pack-priv static final int ALIGN
NIO_ACCESSback to summary
pack-priv static final JavaNioAccess NIO_ACCESS
SCOPED_MEMORY_ACCESSback to summary
pack-priv static final ScopedMemoryAccess SCOPED_MEMORY_ACCESS

Constructor Detail

VarHandleByteArrayAsLongsback to summary
pack-priv VarHandleByteArrayAsLongs()

Method Detail

convEndianback to summary
pack-priv static long convEndian(boolean big, long n)
Annotations
@ForceInline
java.lang.invoke back to summary

pack-priv final Class VarHandleByteArrayAsLongs.ArrayHandle

extends ByteArrayViewVarHandle
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final VarForm
Inherited from java.lang.invoke.VarHandleByteArrayAsLongs.ByteArrayViewVarHandle:
be

Constructor Summary

AccessConstructor and Description
pack-priv
ArrayHandle(boolean be)

private
ArrayHandle(boolean be, boolean exact)

Method Summary

Modifier and TypeMethod and Description
pack-priv final MethodType
pack-priv static long
get(VarHandle ob, Object oba, int index)

pack-priv static int
index(byte[] ba, int index)

pack-priv static void
set(VarHandle ob, Object oba, int index, long value)

public VarHandleByteArrayAsLongs.ArrayHandle
withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

public VarHandleByteArrayAsLongs.ArrayHandle
withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

Field Detail

FORMback to summary
pack-priv static final VarForm FORM

Constructor Detail

ArrayHandleback to summary
pack-priv ArrayHandle(boolean be)
ArrayHandleback to summary
private ArrayHandle(boolean be, boolean exact)

Method Detail

accessModeTypeUncachedback to summary
pack-priv final MethodType accessModeTypeUncached(VarHandle.AccessType at)

Implements abstract java.lang.invoke.VarHandle.accessModeTypeUncached.

Annotations
@Override
getback to summary
pack-priv static long get(VarHandle ob, Object oba, int index)
Annotations
@ForceInline
indexback to summary
pack-priv static int index(byte[] ba, int index)
Annotations
@ForceInline
setback to summary
pack-priv static void set(VarHandle ob, Object oba, int index, long value)
Annotations
@ForceInline
withInvokeBehaviorback to summary
public VarHandleByteArrayAsLongs.ArrayHandle withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

If this VarHandle already has invoke behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return false.

Returns:VarHandleByteArrayAsLongs.ArrayHandle

a VarHandle with invoke behavior

Annotations
@Override
withInvokeExactBehaviorback to summary
public VarHandleByteArrayAsLongs.ArrayHandle withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

If this VarHandle already has invoke-exact behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return true.

Returns:VarHandleByteArrayAsLongs.ArrayHandle

a VarHandle with invoke-exact behavior

Annotations
@Override
java.lang.invoke back to summary

pack-priv abstract sealed Class VarHandleByteArrayAsLongs.ByteArrayViewVarHandle

extends VarHandle
permits ArrayHandle, ByteBufferHandle
Class Inheritance
Known Direct Subclasses
java.lang.invoke.VarHandleByteArrayAsLongs.ArrayHandle, java.lang.invoke.VarHandleByteArrayAsLongs.ByteBufferHandle

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
Inherited from java.lang.invoke.VarHandle:
exactmethodHandleTablemethodTypeTablevform

Constructor Summary

AccessConstructor and Description
pack-priv
ByteArrayViewVarHandle(VarForm form, boolean be, boolean exact)

Method Summary

Inherited from java.lang.invoke.VarHandle:
accessModeTypeaccessModeTypeaccessModeTypeUncachedaccessModeTypeUncachedacquireFenceasDirectcheckAccessModeThenIsDirectcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetcoordinateTypesdescribeConstablefullFencegetgetAcquiregetAndAddgetAndAddAcquiregetAndAddReleasegetAndBitwiseAndgetAndBitwiseAndAcquiregetAndBitwiseAndReleasegetAndBitwiseOrgetAndBitwiseOrAcquiregetAndBitwiseOrReleasegetAndBitwiseXorgetAndBitwiseXorAcquiregetAndBitwiseXorReleasegetAndSetgetAndSetAcquiregetAndSetReleasegetMethodHandlegetMethodHandleUncachedgetOpaquegetVolatilehasInvokeExactBehaviorisAccessModeSupportedloadLoadFencereleaseFencesetsetOpaquesetReleasesetVolatilestoreStoreFencetargettoMethodHandletoStringupdateVarFormvarTypeweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleasewithInvokeBehaviorwithInvokeExactBehavior

Field Detail

beback to summary
pack-priv final boolean be

Constructor Detail

ByteArrayViewVarHandleback to summary
pack-priv ByteArrayViewVarHandle(VarForm form, boolean be, boolean exact)
java.lang.invoke back to summary

pack-priv final Class VarHandleByteArrayAsLongs.ByteBufferHandle

extends ByteArrayViewVarHandle
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final VarForm
Inherited from java.lang.invoke.VarHandleByteArrayAsLongs.ByteArrayViewVarHandle:
be

Constructor Summary

AccessConstructor and Description
pack-priv
ByteBufferHandle(boolean be)

private
ByteBufferHandle(boolean be, boolean exact)

Method Summary

Modifier and TypeMethod and Description
pack-priv final MethodType
pack-priv static long
address(ByteBuffer bb, int index)

pack-priv static Object
pack-priv static long
compareAndExchange(VarHandle ob, Object obb, int index, long expected, long value)

pack-priv static long
compareAndExchangeAcquire(VarHandle ob, Object obb, int index, long expected, long value)

pack-priv static long
compareAndExchangeRelease(VarHandle ob, Object obb, int index, long expected, long value)

pack-priv static boolean
compareAndSet(VarHandle ob, Object obb, int index, long expected, long value)

pack-priv static long
get(VarHandle ob, Object obb, int index)

pack-priv static long
getAcquire(VarHandle ob, Object obb, int index)

pack-priv static long
getAndAdd(VarHandle ob, Object obb, int index, long delta)

pack-priv static long
getAndAddAcquire(VarHandle ob, Object obb, int index, long delta)

pack-priv static long
getAndAddConvEndianWithCAS(ByteBuffer bb, int index, long delta)

pack-priv static long
getAndAddRelease(VarHandle ob, Object obb, int index, long delta)

pack-priv static long
getAndBitwiseAnd(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndBitwiseAndAcquire(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndBitwiseAndConvEndianWithCAS(ByteBuffer bb, int index, long value)

pack-priv static long
getAndBitwiseAndRelease(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndBitwiseOr(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndBitwiseOrAcquire(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndBitwiseOrConvEndianWithCAS(ByteBuffer bb, int index, long value)

pack-priv static long
getAndBitwiseOrRelease(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndBitwiseXor(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndBitwiseXorAcquire(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndBitwiseXorConvEndianWithCAS(ByteBuffer bb, int index, long value)

pack-priv static long
getAndBitwiseXorRelease(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndSet(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndSetAcquire(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getAndSetRelease(VarHandle ob, Object obb, int index, long value)

pack-priv static long
getOpaque(VarHandle ob, Object obb, int index)

pack-priv static long
getVolatile(VarHandle ob, Object obb, int index)

pack-priv static int
index(ByteBuffer bb, int index)

pack-priv static int
indexRO(ByteBuffer bb, int index)

pack-priv static MemorySessionImpl
pack-priv static void
set(VarHandle ob, Object obb, int index, long value)

pack-priv static void
setOpaque(VarHandle ob, Object obb, int index, long value)

pack-priv static void
setRelease(VarHandle ob, Object obb, int index, long value)

pack-priv static void
setVolatile(VarHandle ob, Object obb, int index, long value)

pack-priv static boolean
weakCompareAndSet(VarHandle ob, Object obb, int index, long expected, long value)

pack-priv static boolean
weakCompareAndSetAcquire(VarHandle ob, Object obb, int index, long expected, long value)

pack-priv static boolean
weakCompareAndSetPlain(VarHandle ob, Object obb, int index, long expected, long value)

pack-priv static boolean
weakCompareAndSetRelease(VarHandle ob, Object obb, int index, long expected, long value)

public VarHandleByteArrayAsLongs.ByteBufferHandle
withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

public VarHandleByteArrayAsLongs.ByteBufferHandle
withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

Field Detail

FORMback to summary
pack-priv static final VarForm FORM

Constructor Detail

ByteBufferHandleback to summary
pack-priv ByteBufferHandle(boolean be)
ByteBufferHandleback to summary
private ByteBufferHandle(boolean be, boolean exact)

Method Detail

accessModeTypeUncachedback to summary
pack-priv final MethodType accessModeTypeUncached(VarHandle.AccessType at)

Implements abstract java.lang.invoke.VarHandle.accessModeTypeUncached.

Annotations
@Override
addressback to summary
pack-priv static long address(ByteBuffer bb, int index)
Annotations
@ForceInline
checkNullHeapBaseback to summary
pack-priv static Object checkNullHeapBase(Object hb)
Annotations
@ForceInline
compareAndExchangeback to summary
pack-priv static long compareAndExchange(VarHandle ob, Object obb, int index, long expected, long value)
Annotations
@ForceInline
compareAndExchangeAcquireback to summary
pack-priv static long compareAndExchangeAcquire(VarHandle ob, Object obb, int index, long expected, long value)
Annotations
@ForceInline
compareAndExchangeReleaseback to summary
pack-priv static long compareAndExchangeRelease(VarHandle ob, Object obb, int index, long expected, long value)
Annotations
@ForceInline
compareAndSetback to summary
pack-priv static boolean compareAndSet(VarHandle ob, Object obb, int index, long expected, long value)
Annotations
@ForceInline
getback to summary
pack-priv static long get(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getAcquireback to summary
pack-priv static long getAcquire(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getAndAddback to summary
pack-priv static long getAndAdd(VarHandle ob, Object obb, int index, long delta)
Annotations
@ForceInline
getAndAddAcquireback to summary
pack-priv static long getAndAddAcquire(VarHandle ob, Object obb, int index, long delta)
Annotations
@ForceInline
getAndAddConvEndianWithCASback to summary
pack-priv static long getAndAddConvEndianWithCAS(ByteBuffer bb, int index, long delta)
Annotations
@ForceInline
getAndAddReleaseback to summary
pack-priv static long getAndAddRelease(VarHandle ob, Object obb, int index, long delta)
Annotations
@ForceInline
getAndBitwiseAndback to summary
pack-priv static long getAndBitwiseAnd(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndBitwiseAndAcquireback to summary
pack-priv static long getAndBitwiseAndAcquire(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndBitwiseAndConvEndianWithCASback to summary
pack-priv static long getAndBitwiseAndConvEndianWithCAS(ByteBuffer bb, int index, long value)
Annotations
@ForceInline
getAndBitwiseAndReleaseback to summary
pack-priv static long getAndBitwiseAndRelease(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndBitwiseOrback to summary
pack-priv static long getAndBitwiseOr(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndBitwiseOrAcquireback to summary
pack-priv static long getAndBitwiseOrAcquire(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndBitwiseOrConvEndianWithCASback to summary
pack-priv static long getAndBitwiseOrConvEndianWithCAS(ByteBuffer bb, int index, long value)
Annotations
@ForceInline
getAndBitwiseOrReleaseback to summary
pack-priv static long getAndBitwiseOrRelease(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndBitwiseXorback to summary
pack-priv static long getAndBitwiseXor(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndBitwiseXorAcquireback to summary
pack-priv static long getAndBitwiseXorAcquire(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndBitwiseXorConvEndianWithCASback to summary
pack-priv static long getAndBitwiseXorConvEndianWithCAS(ByteBuffer bb, int index, long value)
Annotations
@ForceInline
getAndBitwiseXorReleaseback to summary
pack-priv static long getAndBitwiseXorRelease(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndSetback to summary
pack-priv static long getAndSet(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndSetAcquireback to summary
pack-priv static long getAndSetAcquire(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getAndSetReleaseback to summary
pack-priv static long getAndSetRelease(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
getOpaqueback to summary
pack-priv static long getOpaque(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
getVolatileback to summary
pack-priv static long getVolatile(VarHandle ob, Object obb, int index)
Annotations
@ForceInline
indexback to summary
pack-priv static int index(ByteBuffer bb, int index)
Annotations
@ForceInline
indexROback to summary
pack-priv static int indexRO(ByteBuffer bb, int index)
Annotations
@ForceInline
sessionback to summary
pack-priv static MemorySessionImpl session(ByteBuffer bb)
Annotations
@ForceInline
setback to summary
pack-priv static void set(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
setOpaqueback to summary
pack-priv static void setOpaque(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
setReleaseback to summary
pack-priv static void setRelease(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
setVolatileback to summary
pack-priv static void setVolatile(VarHandle ob, Object obb, int index, long value)
Annotations
@ForceInline
weakCompareAndSetback to summary
pack-priv static boolean weakCompareAndSet(VarHandle ob, Object obb, int index, long expected, long value)
Annotations
@ForceInline
weakCompareAndSetAcquireback to summary
pack-priv static boolean weakCompareAndSetAcquire(VarHandle ob, Object obb, int index, long expected, long value)
Annotations
@ForceInline
weakCompareAndSetPlainback to summary
pack-priv static boolean weakCompareAndSetPlain(VarHandle ob, Object obb, int index, long expected, long value)
Annotations
@ForceInline
weakCompareAndSetReleaseback to summary
pack-priv static boolean weakCompareAndSetRelease(VarHandle ob, Object obb, int index, long expected, long value)
Annotations
@ForceInline
withInvokeBehaviorback to summary
public VarHandleByteArrayAsLongs.ByteBufferHandle withInvokeBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.

If this VarHandle already has invoke behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return false.

Returns:VarHandleByteArrayAsLongs.ByteBufferHandle

a VarHandle with invoke behavior

Annotations
@Override
withInvokeExactBehaviorback to summary
public VarHandleByteArrayAsLongs.ByteBufferHandle withInvokeExactBehavior()

Implements abstract java.lang.invoke.VarHandle.withInvokeExactBehavior.

Doc from java.lang.invoke.VarHandle.withInvokeExactBehavior.

Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.

If this VarHandle already has invoke-exact behavior this VarHandle is returned.

Invoking hasInvokeExactBehavior() on the returned var handle is guaranteed to return true.

Returns:VarHandleByteArrayAsLongs.ByteBufferHandle

a VarHandle with invoke-exact behavior

Annotations
@Override