< prev index next >

src/hotspot/share/gc/g1/g1FullGCOopClosures.inline.hpp

Print this page
@@ -30,10 +30,11 @@
  #include "gc/g1/g1Allocator.inline.hpp"
  #include "gc/g1/g1FullCollector.inline.hpp"
  #include "gc/g1/g1ConcurrentMarkBitMap.inline.hpp"
  #include "gc/g1/g1FullGCMarker.inline.hpp"
  #include "gc/g1/heapRegionRemSet.inline.hpp"
+ #include "gc/shared/slidingForwarding.inline.hpp"
  #include "memory/iterator.inline.hpp"
  #include "memory/universe.hpp"
  #include "oops/access.inline.hpp"
  #include "oops/compressedOops.inline.hpp"
  #include "oops/oop.inline.hpp"

@@ -76,11 +77,11 @@
      // process them further.
      return;
    }
  
    if (obj->is_forwarded()) {
-     oop forwardee = obj->forwardee();
+     oop forwardee = _forwarding->forwardee(obj);
      // Forwarded, just update.
      assert(G1CollectedHeap::heap()->is_in_reserved(forwardee), "should be in object space");
      RawAccess<IS_NOT_NULL>::oop_store(p, forwardee);
    }
  
< prev index next >