< prev index next >

src/hotspot/share/gc/g1/g1FullCollector.cpp

Print this page
rev 48019 : 8191821: Finer granularity for GC verification
Reviewed-by:
rev 48020 : [mq]: 8191821-rev-sang-poonam

*** 243,254 **** void G1FullCollector::run_task(AbstractGangTask* task) { _heap->workers()->run_task(task, _num_workers); } void G1FullCollector::verify_after_marking() { ! if (!VerifyDuringGC) { ! //Only do verification if VerifyDuringGC is set. return; } HandleMark hm; // handle scope #if COMPILER2_OR_JVMCI --- 243,254 ---- void G1FullCollector::run_task(AbstractGangTask* task) { _heap->workers()->run_task(task, _num_workers); } void G1FullCollector::verify_after_marking() { ! if (!VerifyDuringGC || !_heap->verifier()->should_verify(G1HeapVerifier::G1VerifyFull)) { ! // Only do verification if VerifyDuringGC and G1VerifyFull is set. return; } HandleMark hm; // handle scope #if COMPILER2_OR_JVMCI
*** 263,270 **** // used when verifying the dictionaries and so removing them // from the mark word can make verification of the dictionaries // fail. At the end of the GC, the original mark word values // (including hash values) are restored to the appropriate // objects. ! GCTraceTime(Info, gc, verify)("During GC (full)"); _heap->verify(VerifyOption_G1UseFullMarking); } --- 263,270 ---- // used when verifying the dictionaries and so removing them // from the mark word can make verification of the dictionaries // fail. At the end of the GC, the original mark word values // (including hash values) are restored to the appropriate // objects. ! GCTraceTime(Info, gc, verify)("Verifying During GC (full)"); _heap->verify(VerifyOption_G1UseFullMarking); }
< prev index next >