diff src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp @ 20299:e8ba50da0de0

8052170: G1 asserts at collection exit with -XX:-G1DeferredRSUpdate Summary: Do not try to verify timing measures for the redirty logged cards phase when it is not executed. Reviewed-by: brutisso, jmasa
author tschatzl
date Thu, 07 Aug 2014 22:28:16 +0200
parents a3953c777565
children 7baf47cb97cb
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp	Thu Jul 31 09:23:24 2014 +0200
+++ b/src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp	Thu Aug 07 22:28:16 2014 +0200
@@ -236,8 +236,10 @@
   _last_gc_worker_times_ms.verify();
   _last_gc_worker_other_times_ms.verify();
 
-  _last_redirty_logged_cards_time_ms.verify();
-  _last_redirty_logged_cards_processed_cards.verify();
+  if (G1DeferredRSUpdate) {
+    _last_redirty_logged_cards_time_ms.verify();
+    _last_redirty_logged_cards_processed_cards.verify();
+  }
 }
 
 void G1GCPhaseTimes::note_string_dedup_fixup_start() {