--- old/src/hotspot/share/memory/metaspaceShared.cpp 2018-09-10 17:52:40.196417473 -0700 +++ new/src/hotspot/share/memory/metaspaceShared.cpp 2018-09-10 17:52:39.964408556 -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); } }