OpenJDK / amber / amber
changeset 52097:be775229d3b3
8200365: TestOptionsWithRanges.java of '-XX:TLABWasteTargetPercent=100' fails intermittently
Summary: For initial TLAB sizing, increase the number of expected refills to 2.
Reviewed-by: phh, sangheki
author | tschatzl |
---|---|
date | Mon, 13 Aug 2018 12:24:25 +0200 |
parents | 677e21d875ae |
children | aed534740851 |
files | src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp Mon Aug 13 12:24:25 2018 +0200 +++ b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp Mon Aug 13 12:24:25 2018 +0200 @@ -226,7 +226,9 @@ // Assuming each thread's active tlab is, on average, // 1/2 full at a GC _target_refills = 100 / (2 * TLABWasteTargetPercent); - _target_refills = MAX2(_target_refills, (unsigned)1U); + // We need to set initial target refills to 2 to avoid a GC which causes VM + // abort during VM initialization. + _target_refills = MAX2(_target_refills, 2U); _global_stats = new GlobalTLABStats();