changeset 59285:77585cdc8e20 nestmates

Summary: Add code to record dependency between a class and its nest host Reviewed-by: mchung, coleenp
author hseigel
date Fri, 20 Mar 2020 19:15:51 +0000
parents d259d5fa90a3
children a04e471a0e87
files src/hotspot/share/oops/instanceKlass.cpp
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/oops/instanceKlass.cpp	Fri Mar 20 18:52:33 2020 +0000
+++ b/src/hotspot/share/oops/instanceKlass.cpp	Fri Mar 20 19:15:51 2020 +0000
@@ -292,10 +292,6 @@
           if (!HAS_PENDING_EXCEPTION) {
             if (is_member) {
               _nest_host = nest_host_k; // save resolved nest-host value
-              // Record dependency to keep nest host from being unloaded before this class.
-              ClassLoaderData* this_key = class_loader_data();
-              this_key->record_dependency(nest_host_k);
-
               if (doLog) {
                 ResourceMark rm(THREAD);
                 log_trace(class, nestmates)("Resolved nest-host of %s to %s",