src/hotspot/share/classfile/compactHashtable.cpp
changeset 49592 77fb0be7d19f
parent 48962 88ad6c676c87
child 51491 187c84a5efe1
--- a/src/hotspot/share/classfile/compactHashtable.cpp	Fri Mar 23 12:55:39 2018 +0100
+++ b/src/hotspot/share/classfile/compactHashtable.cpp	Thu Mar 15 21:24:10 2018 +0100
@@ -29,6 +29,7 @@
 #include "logging/logMessage.hpp"
 #include "memory/metadataFactory.hpp"
 #include "memory/metaspaceShared.hpp"
+#include "oops/compressedOops.inline.hpp"
 #include "runtime/vmThread.hpp"
 #include "utilities/numberSeq.hpp"
 #include <sys/stat.h>
@@ -182,7 +183,7 @@
 }
 
 void CompactStringTableWriter::add(unsigned int hash, oop string) {
-  CompactHashtableWriter::add(hash, oopDesc::encode_heap_oop(string));
+  CompactHashtableWriter::add(hash, CompressedOops::encode(string));
 }
 
 void CompactSymbolTableWriter::dump(CompactHashtable<Symbol*, char> *cht) {