< prev index next >

src/hotspot/share/gc/serial/genMarkSweep.cpp

Print this page

        

@@ -73,14 +73,10 @@
   set_ref_processor(rp);
   rp->setup_policy(clear_all_softrefs);
 
   gch->trace_heap_before_gc(_gc_tracer);
 
-  // When collecting the permanent generation Method*s may be moving,
-  // so we either have to flush all bcp data or convert it into bci.
-  CodeCache::gc_prologue();
-
   // Increment the invocation count
   _total_invocations++;
 
   // Capture used regions for each generation that will be
   // subject to collection, so that card table adjustments can

@@ -126,11 +122,11 @@
     // Invalidate the cards corresponding to the currently used
     // region and clear those corresponding to the evacuated region.
     rs->invalidate_or_clear(old_gen);
   }
 
-  CodeCache::gc_epilogue();
+  gch->prune_nmethods();
   JvmtiExport::gc_epilogue();
 
   // refs processing: clean slate
   set_ref_processor(NULL);
 
< prev index next >