< prev index next >

src/hotspot/share/gc/parallel/psParallelCompact.inline.hpp

Print this page
@@ -29,10 +29,11 @@
  
  #include "gc/parallel/parallelScavengeHeap.hpp"
  #include "gc/parallel/parMarkBitMap.inline.hpp"
  #include "gc/shared/collectedHeap.hpp"
  #include "gc/shared/continuationGCSupport.inline.hpp"
+ #include "gc/shared/slidingForwarding.inline.hpp"
  #include "oops/access.inline.hpp"
  #include "oops/compressedOops.inline.hpp"
  #include "oops/klass.hpp"
  #include "oops/oop.inline.hpp"
  

@@ -77,11 +78,11 @@
      assert(ParallelScavengeHeap::heap()->is_in(obj), "should be in heap");
  
      if (!obj->is_forwarded()) {
        return;
      }
-     oop new_obj = obj->forwardee();
+     oop new_obj = SlidingForwarding::forwardee(obj);
      assert(new_obj != nullptr, "non-null address for live objects");
      assert(new_obj != obj, "inv");
      assert(ParallelScavengeHeap::heap()->is_in_reserved(new_obj),
             "should be in object space");
      RawAccess<IS_NOT_NULL>::oop_store(p, new_obj);
< prev index next >