hotspot/src/share/vm/classfile/modules.cpp
changeset 46773 fb17cc9a6847
parent 46701 f559541c0daa
--- a/hotspot/src/share/vm/classfile/modules.cpp	Tue Aug 08 08:41:36 2017 -0400
+++ b/hotspot/src/share/vm/classfile/modules.cpp	Tue Aug 08 09:53:52 2017 -0400
@@ -663,7 +663,7 @@
   const ModuleEntry* const module_entry = (pkg_entry != NULL ? pkg_entry->module() : NULL);
 
   if (module_entry != NULL && module_entry->module() != NULL && module_entry->is_named()) {
-    return JNIHandles::make_local(THREAD, JNIHandles::resolve(module_entry->module()));
+    return JNIHandles::make_local(THREAD, module_entry->module());
   }
   return NULL;
 }
@@ -677,7 +677,7 @@
 
   if (module_entry != NULL &&
       module_entry->module() != NULL) {
-    return JNIHandles::make_local(THREAD, JNIHandles::resolve(module_entry->module()));
+    return JNIHandles::make_local(THREAD, module_entry->module());
   }
 
   return NULL;