hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 13736 5b15a8f57979
parent 13728 882756847a04
child 13738 d67be49a5beb
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp	Wed Sep 05 10:18:37 2012 -0700
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp	Wed Sep 05 20:08:08 2012 -0400
@@ -2165,6 +2165,8 @@
   for (int index2 = 0; index2 < num_methods; ++index2) {
     methodHandle m(THREAD, methods->at(index2));
     m()->link_method(m, CHECK);
+    // restore method's vtable by calling a virtual function
+    m->restore_vtable();
   }
   if (JvmtiExport::has_redefined_a_class()) {
     // Reinitialize vtable because RedefineClasses may have changed some