With the following patch, JDK build will fail the assert during the creation of classlist.raw.
diff --git a/src/hotspot/share/oops/instanceKlass.cpp b/src/hotspot/share/oops/instanceKlass.cpp
index df04200a4dc..cdf171636e9 100644
--- a/src/hotspot/share/oops/instanceKlass.cpp
+++ b/src/hotspot/share/oops/instanceKlass.cpp
@@ -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, "");
this_key->record_dependency(host);
}
diff --git a/src/hotspot/share/oops/instanceKlass.cpp b/src/hotspot/share/oops/instanceKlass.cpp
index df04200a4dc..cdf171636e9 100644
--- a/src/hotspot/share/oops/instanceKlass.cpp
+++ b/src/hotspot/share/oops/instanceKlass.cpp
@@ -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, "");
this_key->record_dependency(host);
}
- relates to
-
JDK-8323950 Null CLD while loading shared lambda proxy class with javaagent active
- Closed
-
JDK-8325069 CDS Heap objects have Klass pointers with null CLD
- Closed