8234379: ZGC: Do not resize TALBs unless -XX:ResizeTLAB is enabled
authorpliden
Wed, 20 Nov 2019 10:37:45 +0100
changeset 59147 e735301d76b9
parent 59146 455612b3161a
child 59148 877c000fd688
8234379: ZGC: Do not resize TALBs unless -XX:ResizeTLAB is enabled Reviewed-by: eosterlund, tschatzl
src/hotspot/share/gc/z/zThreadLocalAllocBuffer.cpp
--- 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();
+    }
   }
 }