--- old/src/hotspot/share/gc/shared/collectedHeap.cpp 2018-09-14 13:44:04.930188788 +0200 +++ new/src/hotspot/share/gc/shared/collectedHeap.cpp 2018-09-14 13:44:04.625175600 +0200 @@ -502,12 +502,13 @@ } 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(); + } } }