public final class FastThreadLocalLong extends FastThreadLocal
long
. See
FastThreadLocalFactory
for details and restrictions of VM thread local variables.BYTE_OFFSET, FIRST_CACHE_LINE
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSet(org.graalvm.nativeimage.IsolateThread thread,
long expect,
long update) |
boolean |
compareAndSet(long expect,
long update) |
long |
get() |
long |
get(org.graalvm.nativeimage.IsolateThread thread) |
long |
getVolatile() |
long |
getVolatile(org.graalvm.nativeimage.IsolateThread thread) |
void |
set(org.graalvm.nativeimage.IsolateThread thread,
long value) |
void |
set(long value) |
void |
setVolatile(org.graalvm.nativeimage.IsolateThread thread,
long value) |
void |
setVolatile(long value) |
getLocationIdentity, getMaxOffset, setMaxOffset
public long get()
public long get(org.graalvm.nativeimage.IsolateThread thread)
public void set(long value)
public void set(org.graalvm.nativeimage.IsolateThread thread, long value)
public long getVolatile()
public long getVolatile(org.graalvm.nativeimage.IsolateThread thread)
public void setVolatile(long value)
public void setVolatile(org.graalvm.nativeimage.IsolateThread thread, long value)
public boolean compareAndSet(long expect, long update)
public boolean compareAndSet(org.graalvm.nativeimage.IsolateThread thread, long expect, long update)