< prev index next >

src/hotspot/share/gc/z/zThreadLocalAllocBuffer.cpp

Print this page

        

@@ -67,11 +67,13 @@
 void ZThreadLocalAllocBuffer::retire(Thread* thread) {
   if (UseTLAB && thread->is_Java_thread()) {
     ThreadLocalAllocStats* const stats = _stats->addr();
     thread->tlab().addresses_do(fixup_address);
     thread->tlab().retire(stats);
-    thread->tlab().resize();
+    if (ResizeTLAB) {
+      thread->tlab().resize();
+    }
   }
 }
 
 void ZThreadLocalAllocBuffer::remap(Thread* thread) {
   if (UseTLAB && thread->is_Java_thread()) {
< prev index next >