8296433: Encountered null CLD while loading shared lambda proxy class

Reviewed-by: iklam, dholmes
This commit is contained in:
Calvin Cheung 2022-11-08 21:55:51 +00:00
parent 74f2b16a8e
commit d04d6566b0
2 changed files with 7 additions and 6 deletions

View file

@ -387,6 +387,7 @@ void InstanceKlass::set_nest_host(InstanceKlass* host) {
_nest_host = host;
// Record dependency to keep nest host from being unloaded before this class.
ClassLoaderData* this_key = class_loader_data();
assert(this_key != NULL, "sanity");
this_key->record_dependency(host);
}