mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8297290: Use int indices to reference CDS archived primitive mirrors
Reviewed-by: ccheung
This commit is contained in:
parent
37f613bad3
commit
c7a679fbdd
6 changed files with 76 additions and 52 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue