public final class FastThreadLocalBytes<T extends org.graalvm.word.PointerBase> extends FastThreadLocal
FastThreadLocalFactory
for details and restrictions of VM thread local variables.
The returned address is to memory that is guaranteed to not move, i.e., repeated calls of this method for the same thread are guaranteed to return the same result.
The size must be a compile-time constant. It is computed after the static analysis, i.e., the
provided FastThreadLocalBytes.getSizeSupplier()
is invoked after static analysis. This allows to depend on
static analysis results when providing the size.
Modifier and Type | Method and Description |
---|---|
T |
getAddress() |
T |
getAddress(org.graalvm.nativeimage.IsolateThread thread) |
IntSupplier |
getSizeSupplier() |
getLocationIdentity
public IntSupplier getSizeSupplier()
public T getAddress()
public T getAddress(org.graalvm.nativeimage.IsolateThread thread)