< prev index next >

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

Print this page
*** 92,11 ***
    Ticks start = Ticks::now();
    ResourceMark rm;
  
    // Adjust preserved marks first since they are not balanced.
    G1FullGCMarker* marker = collector()->marker(worker_id);
!   marker->preserved_stack()->adjust_during_full_gc();
  
    {
      // Adjust the weak roots.
      AlwaysTrueClosure always_alive;
      _weak_proc_task.work(worker_id, &always_alive, &_adjust);
--- 92,12 ---
    Ticks start = Ticks::now();
    ResourceMark rm;
  
    // Adjust preserved marks first since they are not balanced.
    G1FullGCMarker* marker = collector()->marker(worker_id);
!   const SlidingForwarding* const forwarding = G1CollectedHeap::heap()->forwarding();
+   marker->preserved_stack()->adjust_during_full_gc(forwarding);
  
    {
      // Adjust the weak roots.
      AlwaysTrueClosure always_alive;
      _weak_proc_task.work(worker_id, &always_alive, &_adjust);
< prev index next >