< prev index next >

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

Print this page
@@ -29,10 +29,11 @@
  #include "gc/g1/g1FullCollector.inline.hpp"
  #include "gc/g1/g1FullGCCompactionPoint.hpp"
  #include "gc/g1/g1FullGCCompactTask.hpp"
  #include "gc/g1/heapRegion.inline.hpp"
  #include "gc/shared/gcTraceTime.inline.hpp"
+ #include "gc/shared/slidingForwarding.inline.hpp"
  #include "logging/log.hpp"
  #include "oops/oop.inline.hpp"
  #include "utilities/ticks.hpp"
  
  // Do work for all skip-compacting regions.

@@ -78,12 +79,11 @@
    if (!obj->is_forwarded()) {
      // Object not moving, but clear the mark to allow reuse of the bitmap.
      clear_in_prev_bitmap(obj);
      return size;
    }
- 
-   HeapWord* destination = cast_from_oop<HeapWord*>(obj->forwardee());
+   HeapWord* destination = cast_from_oop<HeapWord*>(_forwarding->forwardee(obj));
  
    // copy object and reinit its mark
    HeapWord* obj_addr = cast_from_oop<HeapWord*>(obj);
    assert(obj_addr != destination, "everything in this pass should be moving");
    Copy::aligned_conjoint_words(obj_addr, destination, size);
< prev index next >