< prev index next >

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

Print this page
@@ -43,11 +43,11 @@
  
  void G1FullGCMarkTask::work(uint worker_id) {
    Ticks start = Ticks::now();
    ResourceMark rm;
    G1FullGCMarker* marker = collector()->marker(worker_id);
-   MarkingCodeBlobClosure code_closure(marker->mark_closure(), !CodeBlobToOopClosure::FixRelocations);
+   MarkingCodeBlobClosure code_closure(marker->mark_closure(), !CodeBlobToOopClosure::FixRelocations, true /* keepalive nmethods */);
  
    if (ClassUnloading) {
      _root_processor.process_strong_roots(marker->mark_closure(),
                                           marker->cld_closure(),
                                           &code_closure);
< prev index next >