APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.runtime

public Class JavaThreadState

extends Object
Class Inheritance

This is a type-safe enum mirroring the JavaThreadState enum in globalDefinitions.hpp. The conversion between the underlying ints and these values is done in JavaThread.

Field Summary

Modifier and TypeField and Description
public static final JavaThreadState
BLOCKED

Blocked in vm

public static final JavaThreadState
BLOCKED_TRANS

Corresponding transition state

public static final JavaThreadState
IN_JAVA

Running in Java or in stub code

public static final JavaThreadState
IN_JAVA_TRANS

Corresponding transition state (not used, included for completeness)

public static final JavaThreadState
IN_NATIVE

Running in native code

public static final JavaThreadState
IN_NATIVE_TRANS

Corresponding transition state

public static final JavaThreadState
IN_VM

Running in VM

public static final JavaThreadState
IN_VM_TRANS

Corresponding transition state

public static final JavaThreadState
NEW

Just starting up, i.e., in process of being initialized

public static final JavaThreadState
NEW_TRANS

Corresponding transition state (not used, included for completeness)

private String
public static final JavaThreadState
UNINITIALIZED

Should never happen (missing initialization)

Constructor Summary

AccessConstructor and Description
private
JavaThreadState(String stringVal)

Special state needed, since we cannot suspend a thread when it is in native_trans

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

BLOCKEDback to summary
public static final JavaThreadState BLOCKED

Blocked in vm

BLOCKED_TRANSback to summary
public static final JavaThreadState BLOCKED_TRANS

Corresponding transition state

IN_JAVAback to summary
public static final JavaThreadState IN_JAVA

Running in Java or in stub code

IN_JAVA_TRANSback to summary
public static final JavaThreadState IN_JAVA_TRANS

Corresponding transition state (not used, included for completeness)

IN_NATIVEback to summary
public static final JavaThreadState IN_NATIVE

Running in native code

IN_NATIVE_TRANSback to summary
public static final JavaThreadState IN_NATIVE_TRANS

Corresponding transition state

IN_VMback to summary
public static final JavaThreadState IN_VM

Running in VM

IN_VM_TRANSback to summary
public static final JavaThreadState IN_VM_TRANS

Corresponding transition state

NEWback to summary
public static final JavaThreadState NEW

Just starting up, i.e., in process of being initialized

NEW_TRANSback to summary
public static final JavaThreadState NEW_TRANS

Corresponding transition state (not used, included for completeness)

stringValback to summary
private String stringVal
UNINITIALIZEDback to summary
public static final JavaThreadState UNINITIALIZED

Should never happen (missing initialization)

Constructor Detail

JavaThreadStateback to summary
private JavaThreadState(String stringVal)

Special state needed, since we cannot suspend a thread when it is in native_trans

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.