8234379: ZGC: Do not resize TALBs unless -XX:ResizeTLAB is enabled
Reviewed-by: eosterlund, tschatzl
--- 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();
+ }
}
}