< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/JavaThread.java
Print this page
rev 54717 : imported patch 8223306
@@ -39,11 +39,10 @@
instantiated by the JavaThreadFactory in the Threads class. */
public class JavaThread extends Thread {
private static final boolean DEBUG = System.getProperty("sun.jvm.hotspot.runtime.JavaThread.DEBUG") != null;
- private static AddressField nextField;
private static sun.jvm.hotspot.types.OopField threadObjField;
private static AddressField anchorField;
private static AddressField lastJavaSPField;
private static AddressField lastJavaPCField;
private static CIntegerField threadStateField;
@@ -82,11 +81,10 @@
private static synchronized void initialize(TypeDataBase db) {
Type type = db.lookupType("JavaThread");
Type anchorType = db.lookupType("JavaFrameAnchor");
- nextField = type.getAddressField("_next");
threadObjField = type.getOopField("_threadObj");
anchorField = type.getAddressField("_anchor");
lastJavaSPField = anchorType.getAddressField("_last_Java_sp");
lastJavaPCField = anchorType.getAddressField("_last_Java_pc");
threadStateField = type.getCIntegerField("_thread_state");
@@ -118,19 +116,10 @@
void setThreadPDAccess(JavaThreadPDAccess access) {
this.access = access;
}
- public JavaThread next() {
- Address threadAddr = nextField.getValue(addr);
- if (threadAddr == null) {
- return null;
- }
-
- return VM.getVM().getThreads().createJavaThreadWrapper(threadAddr);
- }
-
/** NOTE: for convenience, this differs in definition from the underlying VM.
Only "pure" JavaThreads return true; CompilerThreads, the CodeCacheSweeperThread,
JVMDIDebuggerThreads return false.
FIXME:
consider encapsulating platform-specific functionality in an
< prev index next >