mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
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:
parent
54964edefa
commit
c3d6abc4e1
4 changed files with 9 additions and 5 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue