mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8206977: Minor improvements of runtime code
Reviewed-by: coleenp, lfoltan
This commit is contained in:
parent
89f13ef117
commit
8a9b0134a8
18 changed files with 68 additions and 55 deletions
|
@ -766,10 +766,11 @@ bool SystemDictionaryShared::add_verification_constraint(Klass* k, Symbol* name,
|
|||
SharedDictionaryEntry* entry = ((SharedDictionary*)(k->class_loader_data()->dictionary()))->find_entry_for(k);
|
||||
ResourceMark rm;
|
||||
// Lambda classes are not archived and will be regenerated at runtime.
|
||||
if (entry == NULL && strstr(k->name()->as_C_string(), "Lambda$") != NULL) {
|
||||
if (entry == NULL) {
|
||||
guarantee(strstr(k->name()->as_C_string(), "Lambda$") != NULL,
|
||||
"class should be in dictionary before being verified");
|
||||
return true;
|
||||
}
|
||||
assert(entry != NULL, "class should be in dictionary before being verified");
|
||||
entry->add_verification_constraint(name, from_name, from_field_is_protected,
|
||||
from_is_array, from_is_object);
|
||||
if (entry->is_builtin()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue