equal
deleted
inserted
replaced
26 #define SHARE_VM_CLASSFILE_COMPACTHASHTABLE_INLINE_HPP |
26 #define SHARE_VM_CLASSFILE_COMPACTHASHTABLE_INLINE_HPP |
27 |
27 |
28 #include "classfile/compactHashtable.hpp" |
28 #include "classfile/compactHashtable.hpp" |
29 #include "classfile/javaClasses.hpp" |
29 #include "classfile/javaClasses.hpp" |
30 #include "memory/allocation.inline.hpp" |
30 #include "memory/allocation.inline.hpp" |
31 #include "oops/compressedOops.inline.hpp" |
31 #include "memory/filemap.hpp" |
|
32 #include "memory/heapShared.inline.hpp" |
32 #include "oops/oop.hpp" |
33 #include "oops/oop.hpp" |
33 |
34 |
34 template <class T, class N> |
35 template <class T, class N> |
35 inline Symbol* CompactHashtable<T, N>::decode_entry(CompactHashtable<Symbol*, char>* const t, |
36 inline Symbol* CompactHashtable<T, N>::decode_entry(CompactHashtable<Symbol*, char>* const t, |
36 u4 offset, const char* name, int len) { |
37 u4 offset, const char* name, int len) { |
44 } |
45 } |
45 |
46 |
46 template <class T, class N> |
47 template <class T, class N> |
47 inline oop CompactHashtable<T, N>::decode_entry(CompactHashtable<oop, char>* const t, |
48 inline oop CompactHashtable<T, N>::decode_entry(CompactHashtable<oop, char>* const t, |
48 u4 offset, const char* name, int len) { |
49 u4 offset, const char* name, int len) { |
49 narrowOop obj = (narrowOop)offset; |
50 narrowOop v = (narrowOop)offset; |
50 oop string = CompressedOops::decode(obj); |
51 oop string = HeapShared::decode_with_archived_oop_encoding_mode(v); |
51 if (java_lang_String::equals(string, (jchar*)name, len)) { |
52 if (java_lang_String::equals(string, (jchar*)name, len)) { |
52 return string; |
53 return string; |
53 } |
54 } |
54 |
55 |
55 return NULL; |
56 return NULL; |