7097567: G1: abstract and encapsulate collector phases and transitions between them

Reviewed-by: mgerdin, tschatzl
This commit is contained in:
Derek White 2015-06-05 10:27:41 +02:00
parent 5f5af54f95
commit 24c9ffed42
14 changed files with 252 additions and 203 deletions

View file

@ -711,7 +711,7 @@ public:
_n_failures++;
}
if (!_g1h->full_collection() || G1VerifyRSetsDuringFullGC) {
if (!_g1h->collector_state()->full_collection() || G1VerifyRSetsDuringFullGC) {
HeapRegion* from = _g1h->heap_region_containing((HeapWord*)p);
HeapRegion* to = _g1h->heap_region_containing(obj);
if (from != NULL && to != NULL &&