diff -r 25048be67f4a -r 187c84a5efe1 src/hotspot/share/classfile/compactHashtable.inline.hpp --- a/src/hotspot/share/classfile/compactHashtable.inline.hpp Wed Aug 22 16:06:51 2018 +0100 +++ b/src/hotspot/share/classfile/compactHashtable.inline.hpp Tue Aug 14 09:59:37 2018 -0700 @@ -28,7 +28,8 @@ #include "classfile/compactHashtable.hpp" #include "classfile/javaClasses.hpp" #include "memory/allocation.inline.hpp" -#include "oops/compressedOops.inline.hpp" +#include "memory/filemap.hpp" +#include "memory/heapShared.inline.hpp" #include "oops/oop.hpp" template @@ -46,8 +47,8 @@ template inline oop CompactHashtable::decode_entry(CompactHashtable* const t, u4 offset, const char* name, int len) { - narrowOop obj = (narrowOop)offset; - oop string = CompressedOops::decode(obj); + narrowOop v = (narrowOop)offset; + oop string = HeapShared::decode_with_archived_oop_encoding_mode(v); if (java_lang_String::equals(string, (jchar*)name, len)) { return string; }