128 soc->do_tag(arrayOopDesc::base_offset_in_bytes(T_BYTE)); 129 soc->do_tag(sizeof(ConstantPool)); 130 soc->do_tag(sizeof(ConstantPoolCache)); 131 soc->do_tag(objArrayOopDesc::base_offset_in_bytes()); 132 soc->do_tag(typeArrayOopDesc::base_offset_in_bytes(T_BYTE)); 133 soc->do_tag(sizeof(Symbol)); 134 135 // Dump/restore miscellaneous metadata. 136 Universe::serialize(soc, true); 137 soc->do_tag(--tag); 138 139 // Dump/restore references to commonly used names and signatures. 140 vmSymbols::serialize(soc); 141 soc->do_tag(--tag); 142 143 // Dump/restore the symbol and string tables 144 SymbolTable::serialize(soc); 145 StringTable::serialize(soc, string_space, space_size); 146 soc->do_tag(--tag); 147 148 // Dump/restore the misc information for system dictionary 149 SystemDictionaryShared::serialize(soc); 150 soc->do_tag(--tag); 151 152 soc->do_tag(666); 153 } 154 155 address MetaspaceShared::cds_i2i_entry_code_buffers(size_t total_size) { 156 if (DumpSharedSpaces) { 157 if (_cds_i2i_entry_code_buffers == NULL) { 158 _cds_i2i_entry_code_buffers = (address)misc_data_space_alloc(total_size); 159 _cds_i2i_entry_code_buffers_size = total_size; 160 } 161 } else if (UseSharedSpaces) { 162 assert(_cds_i2i_entry_code_buffers != NULL, "must already been initialized"); 163 } else { 164 return NULL; 165 } 166 167 assert(_cds_i2i_entry_code_buffers_size == total_size, "must not change"); 168 return _cds_i2i_entry_code_buffers; 169 } 170 171 // CDS code for dumping shared archive. | 128 soc->do_tag(arrayOopDesc::base_offset_in_bytes(T_BYTE)); 129 soc->do_tag(sizeof(ConstantPool)); 130 soc->do_tag(sizeof(ConstantPoolCache)); 131 soc->do_tag(objArrayOopDesc::base_offset_in_bytes()); 132 soc->do_tag(typeArrayOopDesc::base_offset_in_bytes(T_BYTE)); 133 soc->do_tag(sizeof(Symbol)); 134 135 // Dump/restore miscellaneous metadata. 136 Universe::serialize(soc, true); 137 soc->do_tag(--tag); 138 139 // Dump/restore references to commonly used names and signatures. 140 vmSymbols::serialize(soc); 141 soc->do_tag(--tag); 142 143 // Dump/restore the symbol and string tables 144 SymbolTable::serialize(soc); 145 StringTable::serialize(soc, string_space, space_size); 146 soc->do_tag(--tag); 147 148 soc->do_tag(666); 149 } 150 151 address MetaspaceShared::cds_i2i_entry_code_buffers(size_t total_size) { 152 if (DumpSharedSpaces) { 153 if (_cds_i2i_entry_code_buffers == NULL) { 154 _cds_i2i_entry_code_buffers = (address)misc_data_space_alloc(total_size); 155 _cds_i2i_entry_code_buffers_size = total_size; 156 } 157 } else if (UseSharedSpaces) { 158 assert(_cds_i2i_entry_code_buffers != NULL, "must already been initialized"); 159 } else { 160 return NULL; 161 } 162 163 assert(_cds_i2i_entry_code_buffers_size == total_size, "must not change"); 164 return _cds_i2i_entry_code_buffers; 165 } 166 167 // CDS code for dumping shared archive. |