diff src/share/vm/gc_implementation/g1/heapRegion.cpp @ 10373:3a4805ad0005

8015244: G1: Verification after a full GC is incorrectly placed. Summary: In a full GC, move the verification after the GC to after RSet rebuilding. Verify RSet entries during a full GC under control of a flag. Reviewed-by: tschatzl, brutisso
author johnc
date Tue, 04 Jun 2013 10:04:06 -0700
parents 8fbf05030e24
children 836a62f43af9 e0c9a1d29eb4
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/heapRegion.cpp	Tue May 28 09:32:06 2013 +0200
+++ b/src/share/vm/gc_implementation/g1/heapRegion.cpp	Tue Jun 04 10:04:06 2013 -0700
@@ -139,7 +139,7 @@
         _n_failures++;
       }
 
-      if (!_g1h->full_collection()) {
+      if (!_g1h->full_collection() || G1VerifyRSetsDuringFullGC) {
         HeapRegion* from = _g1h->heap_region_containing((HeapWord*)p);
         HeapRegion* to   = _g1h->heap_region_containing(obj);
         if (from != NULL && to != NULL &&