mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8236604: Optimize SystemDictionary::resolve_well_known_classes for CDS
Serialize SystemDictionary::_well_known_classes into CDS and quickly resolve them at runtime in vm startup stage. Reviewed-by: iklam, coleenp
This commit is contained in:
parent
b247e6d908
commit
add146cc8b
7 changed files with 87 additions and 23 deletions
|
@ -1410,6 +1410,12 @@ void SystemDictionaryShared::serialize_dictionary_headers(SerializeClosure* soc,
|
|||
}
|
||||
}
|
||||
|
||||
void SystemDictionaryShared::serialize_well_known_klasses(SerializeClosure* soc) {
|
||||
for (int i = FIRST_WKID; i < WKID_LIMIT; i++) {
|
||||
soc->do_ptr((void**)&_well_known_klasses[i]);
|
||||
}
|
||||
}
|
||||
|
||||
const RunTimeSharedClassInfo*
|
||||
SystemDictionaryShared::find_record(RunTimeSharedDictionary* static_dict, RunTimeSharedDictionary* dynamic_dict, Symbol* name) {
|
||||
if (!UseSharedSpaces || !name->is_shared()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue