src/hotspot/share/gc/z/zThreadLocalAllocBuffer.cpp
changeset 59147 e735301d76b9
parent 58705 f5662bdbee4a
--- a/src/hotspot/share/gc/z/zThreadLocalAllocBuffer.cpp	Wed Nov 20 08:35:53 2019 +0000
+++ b/src/hotspot/share/gc/z/zThreadLocalAllocBuffer.cpp	Wed Nov 20 10:37:45 2019 +0100
@@ -69,7 +69,9 @@
     ThreadLocalAllocStats* const stats = _stats->addr();
     thread->tlab().addresses_do(fixup_address);
     thread->tlab().retire(stats);
-    thread->tlab().resize();
+    if (ResizeTLAB) {
+      thread->tlab().resize();
+    }
   }
 }