RFR: Use ShenandoahAllocationThreshold in ShenandoahStaticHeuristics constructor
Aleksey Shipilev
shade at redhat.com
Mon Nov 26 19:09:24 UTC 2018
On 11/26/18 8:05 PM, Roman Kennke wrote:
> Aleksey pointed out this mistake:
>
> diff --git
> a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.cpp
> b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.cpp
> ---
> a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.cpp
> +++
> b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.cpp
> @@ -34,7 +34,7 @@
> // Static heuristics may degrade to continuous if live data is larger
> // than free threshold. ShenandoahAllocationThreshold is supposed to
> break this,
> // but it only works if it is non-zero.
> - SHENANDOAH_ERGO_OVERRIDE_DEFAULT(ShenandoahImmediateThreshold, 1);
> + SHENANDOAH_ERGO_OVERRIDE_DEFAULT(ShenandoahAllocationThreshold, 1);
>
> SHENANDOAH_ERGO_ENABLE_FLAG(ExplicitGCInvokesConcurrent);
> SHENANDOAH_ERGO_ENABLE_FLAG(ShenandoahImplicitGCInvokesConcurrent);
Looks good.
-Aleksey
More information about the shenandoah-dev
mailing list