--- old/src/share/vm/gc_implementation/shenandoah/shenandoahHeuristics.cpp 2019-11-11 16:09:58.526342799 +0100 +++ new/src/share/vm/gc_implementation/shenandoah/shenandoahHeuristics.cpp 2019-11-11 16:09:58.440342804 +0100 @@ -39,6 +39,14 @@ else return 0; } +int ShenandoahHeuristics::compare_by_garbage_then_alloc_seq_ascending(RegionData a, RegionData b) { + int r = compare_by_garbage(a, b); + if (r != 0) { + return r; + } + return compare_by_alloc_seq_ascending(a, b); +} + int ShenandoahHeuristics::compare_by_alloc_seq_ascending(RegionData a, RegionData b) { if (a._seqnum_last_alloc == b._seqnum_last_alloc) return 0;