< prev index next >

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

Print this page
*** 261,10 ***
--- 261,12 ---
    GCTraceTime(Info, gc, phases) tm("Phase 3: Adjust pointers", gc_timer());
  
    // Need new claim bits for the pointer adjustment tracing.
    ClassLoaderDataGraph::clear_claimed_marks();
  
+   AdjustPointerClosure adjust_pointer_closure(gch->forwarding());
+   CLDToOopClosure adjust_cld_closure(&adjust_pointer_closure, ClassLoaderData::_claim_strong);
    {
      StrongRootsScope srs(0);
  
      gch->full_process_roots(true,  // this is the adjust phase
                              GenCollectedHeap::SO_AllCodeCache,
< prev index next >