-
Enhancement
-
Resolution: Fixed
-
P4
-
10
-
b01
Currently the method ClassLoaderData::record_dependency() does not record dependencies if the class is loaded by the boot loader because those classes never go away. As an improvement, this method should also exclude regular classes loaded by the platform and app class loaders with a change such as:
- // Dependency to the null class loader data doesn't need to be recorded
- // because the null class loader data never goes away.
- if (to_cld->is_the_null_class_loader_data()) {
+ // Dependency to a builtin class loader data doesn't need to be recorded
+ // because these class loader datas never go away.
+ if (to_cld->is_builtin_class_loader_data() && !to_cld->is_anonymous()) {
return;
}
- // Dependency to the null class loader data doesn't need to be recorded
- // because the null class loader data never goes away.
- if (to_cld->is_the_null_class_loader_data()) {
+ // Dependency to a builtin class loader data doesn't need to be recorded
+ // because these class loader datas never go away.
+ if (to_cld->is_builtin_class_loader_data() && !to_cld->is_anonymous()) {
return;
}
- relates to
-
JDK-8198926 Move ClassLoaderData::_dependencies to ClassLoaderData::_handles
-
- Resolved
-