< prev index next >
src/hotspot/share/gc/shared/collectedHeap.cpp
Print this page
@@ -500,16 +500,17 @@
bs->make_parsable(thread);
}
}
void CollectedHeap::resize_all_tlabs() {
- if (UseTLAB) {
- assert(SafepointSynchronize::is_at_safepoint() ||
- !is_init_completed(),
- "should only resize tlabs at safepoint");
+ assert(SafepointSynchronize::is_at_safepoint() || !is_init_completed(),
+ "Should only resize tlabs at safepoint");
- ThreadLocalAllocBuffer::resize_all_tlabs();
+ if (UseTLAB && ResizeTLAB) {
+ for (JavaThreadIteratorWithHandle jtiwh; JavaThread *thread = jtiwh.next(); ) {
+ thread->tlab().resize();
+ }
}
}
void CollectedHeap::full_gc_dump(GCTimer* timer, bool before) {
assert(timer != NULL, "timer is null");
< prev index next >