< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java
Print this page
rev 54717 : imported patch 8223306
*** 355,365 ****
// FIXME: consider adding fewer boundaries to live region list.
// Theoretically only need to stop at TLAB's top and resume at its
// end.
if (VM.getVM().getUseTLAB()) {
! for (JavaThread thread = VM.getVM().getThreads().first(); thread != null; thread = thread.next()) {
ThreadLocalAllocBuffer tlab = thread.tlab();
if (tlab.start() != null) {
if ((tlab.top() == null) || (tlab.end() == null)) {
System.err.print("Warning: skipping invalid TLAB for thread ");
thread.printThreadIDOn(System.err);
--- 355,365 ----
// FIXME: consider adding fewer boundaries to live region list.
// Theoretically only need to stop at TLAB's top and resume at its
// end.
if (VM.getVM().getUseTLAB()) {
! VM.getVM().getThreads().doJavaThreads((thread) -> {
ThreadLocalAllocBuffer tlab = thread.tlab();
if (tlab.start() != null) {
if ((tlab.top() == null) || (tlab.end() == null)) {
System.err.print("Warning: skipping invalid TLAB for thread ");
thread.printThreadIDOn(System.err);
*** 379,389 ****
liveRegions.add(tlab.start());
liveRegions.add(tlab.top());
liveRegions.add(tlab.hardEnd());
}
}
! }
}
// Now sort live regions
sortLiveRegions(liveRegions);
--- 379,389 ----
liveRegions.add(tlab.start());
liveRegions.add(tlab.top());
liveRegions.add(tlab.hardEnd());
}
}
! });
}
// Now sort live regions
sortLiveRegions(liveRegions);
< prev index next >