< prev index next >
src/hotspot/share/classfile/compactHashtable.inline.hpp
Print this page
@@ -26,11 +26,12 @@
#define SHARE_VM_CLASSFILE_COMPACTHASHTABLE_INLINE_HPP
#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 <class T, class N>
inline Symbol* CompactHashtable<T, N>::decode_entry(CompactHashtable<Symbol*, char>* const t,
u4 offset, const char* name, int len) {
@@ -44,12 +45,12 @@
}
template <class T, class N>
inline oop CompactHashtable<T, N>::decode_entry(CompactHashtable<oop, char>* 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_not_null(v);
if (java_lang_String::equals(string, (jchar*)name, len)) {
return string;
}
return NULL;
< prev index next >