src/hotspot/share/oops/instanceKlass.cpp
changeset 51096 695dff91a997
parent 50882 80abf702eed8
child 51265 8329bfbe1b30
--- a/src/hotspot/share/oops/instanceKlass.cpp	Thu Jul 12 16:28:31 2018 +0200
+++ b/src/hotspot/share/oops/instanceKlass.cpp	Mon Jul 16 09:06:33 2018 -0400
@@ -821,7 +821,6 @@
       ClassLoaderData * loader_data = class_loader_data();
       if (!(is_shared() &&
             loader_data->is_the_null_class_loader_data())) {
-        ResourceMark rm(THREAD);
         vtable().initialize_vtable(true, CHECK_false);
         itable().initialize_itable(true, CHECK_false);
       }
@@ -2326,7 +2325,6 @@
     // point to old or obsolete entries.  RedefineClasses doesn't fix up
     // vtables in the shared system dictionary, only the main one.
     // It also redefines the itable too so fix that too.
-    ResourceMark rm(THREAD);
     vtable().initialize_vtable(false, CHECK);
     itable().initialize_itable(false, CHECK);
   }