changeset 53384:09909d1356c8

8217318: Unneeded handleization in InstanceKlass::restore_unshareable_info Summary: No need for a methodHandle here since methods not yet added to SystemDictionary can't be redefined. Reviewed-by: coleenp
author redestad
date Fri, 18 Jan 2019 16:21:07 +0100
parents 5dc89efc08f0
children e8ed617dc2bc
files src/hotspot/share/oops/instanceKlass.cpp
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/oops/instanceKlass.cpp	Fri Jan 18 09:10:49 2019 -0500
+++ b/src/hotspot/share/oops/instanceKlass.cpp	Fri Jan 18 16:21:07 2019 +0100
@@ -2374,9 +2374,8 @@
 
   Array<Method*>* methods = this->methods();
   int num_methods = methods->length();
-  for (int index2 = 0; index2 < num_methods; ++index2) {
-    methodHandle m(THREAD, methods->at(index2));
-    m->restore_unshareable_info(CHECK);
+  for (int index = 0; index < num_methods; ++index) {
+    methods->at(index)->restore_unshareable_info(CHECK);
   }
   if (JvmtiExport::has_redefined_a_class()) {
     // Reinitialize vtable because RedefineClasses may have changed some