mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -413,7 +413,9 @@ void Klass::set_next_sibling(Klass* s) {
|
|||
}
|
||||
|
||||
void Klass::append_to_sibling_list() {
|
||||
assert_locked_or_safepoint(Compile_lock);
|
||||
if (Universe::is_fully_initialized()) {
|
||||
assert_locked_or_safepoint(Compile_lock);
|
||||
}
|
||||
debug_only(verify();)
|
||||
// add ourselves to superklass' subklass list
|
||||
InstanceKlass* super = superklass();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue