mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 10:23:28 +00:00
8370248: AOTMapLogger should check if pointer is in AOTMetaspace
Reviewed-by: kvn, adinn
This commit is contained in:
parent
94c0611b95
commit
70e786154f
@ -135,12 +135,14 @@ public:
|
||||
|
||||
virtual bool do_unique_ref(Ref* ref, bool read_only) {
|
||||
ArchivedObjInfo info;
|
||||
info._src_addr = ref->obj();
|
||||
info._buffered_addr = ref->obj();
|
||||
info._requested_addr = ref->obj();
|
||||
info._bytes = ref->size() * BytesPerWord;
|
||||
info._type = ref->msotype();
|
||||
_objs.append(info);
|
||||
if (AOTMetaspace::in_aot_cache(ref->obj())) {
|
||||
info._src_addr = ref->obj();
|
||||
info._buffered_addr = ref->obj();
|
||||
info._requested_addr = ref->obj();
|
||||
info._bytes = ref->size() * BytesPerWord;
|
||||
info._type = ref->msotype();
|
||||
_objs.append(info);
|
||||
}
|
||||
|
||||
return true; // keep iterating
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user