RFR: 8u+9: ShenandoahHeuristics region comparator is broken

Roman Kennke rkennke at redhat.com
Wed Apr 5 07:46:38 UTC 2017


Am 05.04.2017 um 07:25 schrieb Aleksey Shipilev:
> Oops:
>
> diff -r 3af62047e841 src/share/vm/gc/shenandoah/shenandoahCollectorPolicy.cpp
> --- a/src/share/vm/gc/shenandoah/shenandoahCollectorPolicy.cpp  Sat Apr 01
> 16:45:58 2017 +0200
> +++ b/src/share/vm/gc/shenandoah/shenandoahCollectorPolicy.cpp  Wed Apr 05
> 07:14:56 2017 +0200
> @@ -48,7 +48,7 @@
>    static int compare_by_garbage(RegionGarbage a, RegionGarbage b) {
>      if (a.garbage > b.garbage)
>        return -1;
> -    else if (b.garbage < a.garbage)
> +    else if (a.garbage < b.garbage)
>        return 1;
>      else return 0;
>    }
>
> Affects both 9 and 8u. Luckily, most our heuristics do not need this code, with
> the notable exception of ConnectionHeuristics.
>
> Testing: hotspot_gc_shenandoah
>
> Thanks,
> -Aleksey
>
Yes!

Roman




More information about the shenandoah-dev mailing list