comparison 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
comparison
equal deleted inserted replaced
10372:e72f7eecc96d 10373:3a4805ad0005
137 _failures = true; 137 _failures = true;
138 failed = true; 138 failed = true;
139 _n_failures++; 139 _n_failures++;
140 } 140 }
141 141
142 if (!_g1h->full_collection()) { 142 if (!_g1h->full_collection() || G1VerifyRSetsDuringFullGC) {
143 HeapRegion* from = _g1h->heap_region_containing((HeapWord*)p); 143 HeapRegion* from = _g1h->heap_region_containing((HeapWord*)p);
144 HeapRegion* to = _g1h->heap_region_containing(obj); 144 HeapRegion* to = _g1h->heap_region_containing(obj);
145 if (from != NULL && to != NULL && 145 if (from != NULL && to != NULL &&
146 from != to && 146 from != to &&
147 !to->isHumongous()) { 147 !to->isHumongous()) {