RFR (XS) 8232908: Shenandoah: compact heuristics has incorrect trigger "Free is lower than allocated recently"
Roman Kennke
rkennke at redhat.com
Wed Oct 23 20:50:11 UTC 2019
Ok, good. Thanks,
Roman
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-8232908
>
> See the discussion in the bug. The fix is to remove the offending trigger:
>
> diff -r da4578a0f73d src/hotspot/share/gc/shenandoah/heuristics/shenandoahCompactHeuristics.cpp
> --- a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahCompactHeuristics.cpp Mon Sep 30
> 22:39:11 2019 +0200
> +++ b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahCompactHeuristics.cpp Wed Oct 23
> 20:14:48 2019 +0200
> @@ -66,11 +66,4 @@
> }
>
> - if (available < threshold_bytes_allocated) {
> - log_info(gc)("Trigger: Free (" SIZE_FORMAT "%s) is lower than allocated recently (" SIZE_FORMAT
> "%s)",
> - byte_size_in_proper_unit(available),
> proper_unit_for_byte_size(available),
> - byte_size_in_proper_unit(threshold_bytes_allocated),
> proper_unit_for_byte_size(threshold_bytes_allocated));
> - return true;
> - }
> -
> size_t bytes_allocated = heap->bytes_allocated_since_gc_start();
> if (bytes_allocated > threshold_bytes_allocated) {
>
>
> Testing: hotspot_gc_shenandoah
>
More information about the hotspot-gc-dev
mailing list