8297290: Use int indices to reference CDS archived primitive mirrors

Reviewed-by: ccheung
This commit is contained in:
Ioi Lam 2022-11-30 05:34:03 +00:00
parent 37f613bad3
commit c7a679fbdd
6 changed files with 76 additions and 52 deletions

View file

@ -833,7 +833,7 @@ void HeapShared::write_subgraph_info_table() {
#endif
}
void HeapShared::serialize(SerializeClosure* soc) {
void HeapShared::serialize_root(SerializeClosure* soc) {
oop roots_oop = NULL;
if (soc->reading()) {
@ -849,6 +849,9 @@ void HeapShared::serialize(SerializeClosure* soc) {
roots_oop = roots();
soc->do_oop(&roots_oop); // write to archive
}
}
void HeapShared::serialize_tables(SerializeClosure* soc) {
#ifndef PRODUCT
soc->do_ptr((void**)&_archived_ArchiveHeapTestClass);