src/hotspot/share/memory/metaspaceShared.cpp
changeset 51720 b7bfd64e43a6
parent 51701 9012aeaf993b
child 51796 9d3a00c8c047
--- a/src/hotspot/share/memory/metaspaceShared.cpp	Wed Sep 12 16:28:06 2018 -0700
+++ b/src/hotspot/share/memory/metaspaceShared.cpp	Wed Sep 12 17:45:22 2018 -0700
@@ -1944,7 +1944,7 @@
   assert(archive_heap_region_fixed(),
          "must be called after archive heap regions are fixed");
   if (!CompressedOops::is_null(v)) {
-    oop obj = HeapShared::decode_with_archived_oop_encoding_mode(v);
+    oop obj = HeapShared::decode_from_archive(v);
     return G1CollectedHeap::heap()->materialize_archived_object(obj);
   }
   return NULL;
@@ -2021,7 +2021,7 @@
              "Archived heap object is not allowed");
       assert(MetaspaceShared::open_archive_heap_region_mapped(),
              "Open archive heap region is not mapped");
-      *p = HeapShared::decode_with_archived_oop_encoding_mode(o);
+      *p = HeapShared::decode_from_archive(o);
     }
   }