< prev index next >
src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp
Print this page
@@ -4192,13 +4192,10 @@
ResourceMark rm;
HandleMark hm;
CMSHeap* heap = CMSHeap::heap();
- if (should_unload_classes()) {
- CodeCache::gc_prologue();
- }
assert(haveFreelistLocks(), "must have free list locks");
assert_lock_strong(bitMapLock());
// We might assume that we need not fill TLAB's when
// CMSScavengeBeforeRemark is set, because we may have just done
@@ -4250,11 +4247,11 @@
}
verify_work_stacks_empty();
verify_overflow_empty();
if (should_unload_classes()) {
- CodeCache::gc_epilogue();
+ heap->prune_nmethods();
}
JvmtiExport::gc_epilogue();
// If we encountered any (marking stack / work queue) overflow
// events during the current CMS cycle, take appropriate
< prev index next >