8227090: G1 does not account the OptMergeRS in cost per card calculation
authortschatzl
Wed, 17 Jul 2019 16:33:19 +0200
changeset 55724 3504188512e2
parent 55723 95706898c3ea
child 55725 d2188297c6a2
8227090: G1 does not account the OptMergeRS in cost per card calculation Reviewed-by: sangheki, kbarrett
src/hotspot/share/gc/g1/g1Policy.cpp
--- a/src/hotspot/share/gc/g1/g1Policy.cpp	Wed Jul 17 16:33:19 2019 +0200
+++ b/src/hotspot/share/gc/g1/g1Policy.cpp	Wed Jul 17 16:33:19 2019 +0200
@@ -685,7 +685,8 @@
       double avg_time_remset_scan = ((average_time_ms(G1GCPhaseTimes::ScanHR) + average_time_ms(G1GCPhaseTimes::OptScanHR)) *
                                      remset_cards_scanned / total_cards_scanned) +
                                      average_time_ms(G1GCPhaseTimes::MergeER) +
-                                     average_time_ms(G1GCPhaseTimes::MergeRS);
+                                     average_time_ms(G1GCPhaseTimes::MergeRS) +
+                                     average_time_ms(G1GCPhaseTimes::OptMergeRS);
 
       cost_per_remset_card_ms = avg_time_remset_scan / remset_cards_scanned;
       _analytics->report_cost_per_remset_card_ms(cost_per_remset_card_ms, this_pause_was_young_only);