< prev index next >
src/share/vm/gc/shared/genCollectedHeap.cpp
Print this page
rev 8615 : CMSParallelFullGC: Parallel version of CMS Full GC.
@@ -662,10 +662,15 @@
// Verify that the code cache contents are not subject to
// movement by a scavenging collection.
DEBUG_ONLY(CodeBlobToOopClosure assert_code_is_non_scavengable(&assert_is_non_scavengable_closure, !CodeBlobToOopClosure::FixRelocations));
DEBUG_ONLY(CodeCache::asserted_non_scavengable_nmethods_do(&assert_code_is_non_scavengable));
}
+
+ if (CMSParallelFullGC && strong_roots == &MarkSweep::follow_root_closure) {
+ // Clear the mark stack on CMS full GC.
+ MarkSweep::follow_stack();
+ }
}
void GenCollectedHeap::gen_process_roots(StrongRootsScope* scope,
GenerationType type,
bool younger_gens_as_roots,
< prev index next >