--- old/src/hotspot/share/gc/g1/g1Policy.cpp 2020-07-03 17:41:07.299203159 +0200 +++ new/src/hotspot/share/gc/g1/g1Policy.cpp 2020-07-03 17:41:07.191201592 +0200 @@ -636,7 +636,7 @@ bool update_stats = !_g1h->evacuation_failed(); - record_pause(young_gc_pause_kind(), end_time_sec - pause_time_ms / 1000.0, end_time_sec); + record_pause(this_pause, end_time_sec - pause_time_ms / 1000.0, end_time_sec); _collection_pause_end_millis = os::javaTimeNanos() / NANOSECS_PER_MILLISEC; @@ -672,7 +672,8 @@ } if (is_last_young_pause(this_pause)) { - assert(!is_concurrent_start_pause(this_pause), "The young GC before mixed is not allowed to be an initial mark GC"); + assert(!is_concurrent_start_pause(this_pause), + "The young GC before mixed is not allowed to be concurrent start GC"); // This has been the young GC before we start doing mixed GCs. We already // decided to start mixed GCs much earlier, so there is nothing to do except // advancing the state.