aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/gc_implementation/g1/heapRegion.cpp
diff options
context:
space:
mode:
authorjohnc <none@none>2013-06-04 10:04:06 -0700
committerjohnc <none@none>2013-06-04 10:04:06 -0700
commit0fdf298c246ab94eea8e0109a80dff118400d4ba (patch)
tree3a5929a8d526603b01a525bf0487fbf09e7303dc /src/share/vm/gc_implementation/g1/heapRegion.cpp
parent3d4fa3c2acd30208128b29e0ae75d156af7ce72c (diff)
downloadjdk8u_hotspot-0fdf298c246ab94eea8e0109a80dff118400d4ba.tar.gz
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
Diffstat (limited to 'src/share/vm/gc_implementation/g1/heapRegion.cpp')
-rw-r--r--src/share/vm/gc_implementation/g1/heapRegion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/vm/gc_implementation/g1/heapRegion.cpp b/src/share/vm/gc_implementation/g1/heapRegion.cpp
index f33e0456e..7ef24358e 100644
--- a/src/share/vm/gc_implementation/g1/heapRegion.cpp
+++ b/src/share/vm/gc_implementation/g1/heapRegion.cpp
@@ -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 &&