< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/Threads.java
Print this page
rev 11747 : [mq]: per.hotspot.patch
*** 127,138 ****
virtualConstructor.addMapping("JavaThread", JavaThread.class);
if (!VM.getVM().isCore()) {
virtualConstructor.addMapping("CompilerThread", CompilerThread.class);
virtualConstructor.addMapping("CodeCacheSweeperThread", CodeCacheSweeperThread.class);
}
- // for now, use JavaThread itself. fix it later with appropriate class if needed
- virtualConstructor.addMapping("ReferencePendingListLockerThread", JavaThread.class);
virtualConstructor.addMapping("JvmtiAgentThread", JvmtiAgentThread.class);
virtualConstructor.addMapping("ServiceThread", ServiceThread.class);
}
public Threads() {
--- 127,136 ----
*** 170,180 ****
JavaThread thread = (JavaThread)virtualConstructor.instantiateWrapperFor(threadAddr);
thread.setThreadPDAccess(access);
return thread;
} catch (Exception e) {
throw new RuntimeException("Unable to deduce type of thread from address " + threadAddr +
! " (expected type JavaThread, CompilerThread, ServiceThread, JvmtiAgentThread, ReferencePendingListLockerThread, or CodeCacheSweeperThread)", e);
}
}
/** Memory operations */
public void oopsDo(AddressVisitor oopVisitor) {
--- 168,178 ----
JavaThread thread = (JavaThread)virtualConstructor.instantiateWrapperFor(threadAddr);
thread.setThreadPDAccess(access);
return thread;
} catch (Exception e) {
throw new RuntimeException("Unable to deduce type of thread from address " + threadAddr +
! " (expected type JavaThread, CompilerThread, ServiceThread, JvmtiAgentThread or CodeCacheSweeperThread)", e);
}
}
/** Memory operations */
public void oopsDo(AddressVisitor oopVisitor) {
< prev index next >