# HG changeset patch # User pliden # Date 1574242665 -3600 # Node ID e735301d76b9ce9b31a1f90e7d986e497a9f38eb # Parent 455612b3161a45f5661f329fb3d86a7ae2ba0937 8234379: ZGC: Do not resize TALBs unless -XX:ResizeTLAB is enabled Reviewed-by: eosterlund, tschatzl diff -r 455612b3161a -r e735301d76b9 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(); + } } }