8210523: runtime/appcds/cacheObject/DifferentHeapSizes.java crash

Reviewed-by: jiangli, ccheung
This commit is contained in:
Ioi Lam 2018-09-12 17:45:22 -07:00
parent cf26c4cc5c
commit 4e74846da8
10 changed files with 65 additions and 35 deletions

View file

@ -282,7 +282,7 @@ public:
CompactHashtable_OopIterator(OopClosure *cl) : _closure(cl) {}
inline void do_value(address base_address, u4 offset) const {
narrowOop v = (narrowOop)offset;
oop obj = HeapShared::decode_with_archived_oop_encoding_mode(v);
oop obj = HeapShared::decode_from_archive(v);
_closure->do_oop(&obj);
}
};