< prev index next >

src/hotspot/share/cds/heapShared.cpp

Print this page
@@ -287,11 +287,11 @@
      return NULL;
    }
  
    oop archived_oop = cast_to_oop(G1CollectedHeap::heap()->archive_mem_allocate(len));
    if (archived_oop != NULL) {
-     Copy::aligned_disjoint_words(cast_from_oop<HeapWord*>(obj), cast_from_oop<HeapWord*>(archived_oop), len);
+     obj->copy_disjoint(cast_from_oop<HeapWord*>(archived_oop), len);
      // Reinitialize markword to remove age/marking/locking/etc.
      //
      // We need to retain the identity_hash, because it may have been used by some hashtables
      // in the shared heap. This also has the side effect of pre-initializing the
      // identity_hash for all shared objects, so they are less likely to be written
< prev index next >