Modifier and Type | Field and Description |
---|---|
static int |
STATUS_CREATED
IsolateThread memory has been allocated for the thread, but the thread is not on
the VMThreads list yet. |
static int |
STATUS_IN_JAVA
The thread is running in Java code.
|
static int |
STATUS_IN_NATIVE
The thread is running in native code.
|
static int |
STATUS_IN_SAFEPOINT
The thread has been requested to stop at a safepoint.
|
static FastThreadLocalInt |
statusTL
The status of a
IsolateThread . |
Constructor and Description |
---|
StatusSupport() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareAndSetNativeToJava()
A guarded transition from native to Java.
|
static boolean |
compareAndSetNativeToSafepoint(org.graalvm.nativeimage.IsolateThread vmThread)
There is no unguarded change to safepoint.
|
static String |
getStatusString(org.graalvm.nativeimage.IsolateThread vmThread)
For debugging.
|
static int |
getStatusVolatile(org.graalvm.nativeimage.IsolateThread vmThread) |
static boolean |
isStatusCreated(org.graalvm.nativeimage.IsolateThread vmThread) |
static boolean |
isStatusIgnoreSafepoints(org.graalvm.nativeimage.IsolateThread vmThread) |
static boolean |
isStatusJava() |
static boolean |
isStatusNative(org.graalvm.nativeimage.IsolateThread vmThread) |
static boolean |
isStatusSafepoint(org.graalvm.nativeimage.IsolateThread vmThread) |
static void |
setStatusIgnoreSafepoints()
Make myself immune to safepoints.
|
static void |
setStatusJavaUnguarded(org.graalvm.nativeimage.IsolateThread vmThread)
An unguarded transition to Java.
|
static void |
setStatusNative() |
static void |
setStatusNative(org.graalvm.nativeimage.IsolateThread vmThread) |
public static final FastThreadLocalInt statusTL
IsolateThread
.public static final int STATUS_CREATED
IsolateThread
memory has been allocated for the thread, but the thread is not on
the VMThreads list yet.public static final int STATUS_IN_JAVA
public static final int STATUS_IN_SAFEPOINT
public static final int STATUS_IN_NATIVE
public static String getStatusString(org.graalvm.nativeimage.IsolateThread vmThread)
public static int getStatusVolatile(org.graalvm.nativeimage.IsolateThread vmThread)
public static boolean isStatusCreated(org.graalvm.nativeimage.IsolateThread vmThread)
public static boolean isStatusNative(org.graalvm.nativeimage.IsolateThread vmThread)
public static void setStatusNative()
public static void setStatusNative(org.graalvm.nativeimage.IsolateThread vmThread)
public static boolean isStatusSafepoint(org.graalvm.nativeimage.IsolateThread vmThread)
public static boolean compareAndSetNativeToSafepoint(org.graalvm.nativeimage.IsolateThread vmThread)
public static boolean isStatusJava()
public static void setStatusJavaUnguarded(org.graalvm.nativeimage.IsolateThread vmThread)
public static boolean compareAndSetNativeToJava()
public static boolean isStatusIgnoreSafepoints(org.graalvm.nativeimage.IsolateThread vmThread)
public static void setStatusIgnoreSafepoints()