< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/PointerFinder.java

Print this page
rev 54717 : imported patch 8223306

*** 54,64 **** Assert.that(loc.gen != null, "Should have found this in a generation"); } if (VM.getVM().getUseTLAB()) { // Try to find thread containing it ! for (JavaThread t = VM.getVM().getThreads().first(); t != null; t = t.next()) { ThreadLocalAllocBuffer tlab = t.tlab(); if (tlab.contains(a)) { loc.inTLAB = true; loc.tlabThread = t; loc.tlab = tlab; --- 54,66 ---- Assert.that(loc.gen != null, "Should have found this in a generation"); } if (VM.getVM().getUseTLAB()) { // Try to find thread containing it ! Threads threads = VM.getVM().getThreads(); ! for (int i = 0; i < threads.getNumberOfThreads(); i++) { ! JavaThread t = threads.getJavaThreadAt(i); ThreadLocalAllocBuffer tlab = t.tlab(); if (tlab.contains(a)) { loc.inTLAB = true; loc.tlabThread = t; loc.tlab = tlab;
*** 123,133 **** if ((storage != null) && storage.findOop(a)) { loc.inWeakGlobalJNIHandles = true; return loc; } // Look in thread-local handles ! for (JavaThread t = VM.getVM().getThreads().first(); t != null; t = t.next()) { JNIHandleBlock handleBlock = t.activeHandles(); if (handleBlock != null) { handleBlock = handleBlock.blockContainingHandle(a); if (handleBlock != null) { loc.inLocalJNIHandleBlock = true; --- 125,137 ---- if ((storage != null) && storage.findOop(a)) { loc.inWeakGlobalJNIHandles = true; return loc; } // Look in thread-local handles ! Threads threads = VM.getVM().getThreads(); ! for (int i = 0; i < threads.getNumberOfThreads(); i++) { ! JavaThread t = threads.getJavaThreadAt(i); JNIHandleBlock handleBlock = t.activeHandles(); if (handleBlock != null) { handleBlock = handleBlock.blockContainingHandle(a); if (handleBlock != null) { loc.inLocalJNIHandleBlock = true;
< prev index next >