8015244: G1: Verification after a full GC is incorrectly placed

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
This commit is contained in:
John Cuthbertson 2013-06-04 10:04:06 -07:00
parent 54964edefa
commit c3d6abc4e1
4 changed files with 9 additions and 5 deletions

View file

@ -139,7 +139,7 @@ public:
_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 &&