/**
* This test applies only to JVMs whose thread roots only appear with the rest of the roots,
* and not in JavaStackFrames because of conservative garbage collection.
*/
public void testJavaThreadRoots() throws Exception {
JavaThread thread = null;
// Find the thread to match as a root source.
Iterator threads = getJavaRuntime().getThreads().iterator();
while(threads.hasNext()) {
JavaThread candidateThread = (JavaThread) threads.next();
if (setup.javaLocalRootsthreadName.equals(candidateThread.getName())) {
thread = candidateThread;
break;
}
}