diff src/share/vm/prims/jvmtiRedefineClasses.cpp @ 12022:85147f28faba

8009728: nsk/jvmti/AttachOnDemand/attach030 crashes on Win32 Summary: ActiveMethodOopsCache was used to keep track of old versions of some methods that are cached in Universe but is buggy with permgen removal and not needed anymore Reviewed-by: sspitsyn, dcubed, mseledtsov
author coleenp
date Mon, 12 Aug 2013 17:24:54 -0400
parents 825e6cb66923
children e22ee8e7ae62
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiRedefineClasses.cpp	Sat Aug 10 10:56:27 2013 -0700
+++ b/src/share/vm/prims/jvmtiRedefineClasses.cpp	Mon Aug 12 17:24:54 2013 -0400
@@ -3217,15 +3217,6 @@
   JvmtiBreakpoints& jvmti_breakpoints = JvmtiCurrentBreakpoints::get_jvmti_breakpoints();
   jvmti_breakpoints.clearall_in_class_at_safepoint(the_class_oop);
 
-  if (the_class_oop == Universe::reflect_invoke_cache()->klass()) {
-    // We are redefining java.lang.reflect.Method. Method.invoke() is
-    // cached and users of the cache care about each active version of
-    // the method so we have to track this previous version.
-    // Do this before methods get switched
-    Universe::reflect_invoke_cache()->add_previous_version(
-      the_class->method_with_idnum(Universe::reflect_invoke_cache()->method_idnum()));
-  }
-
   // Deoptimize all compiled code that depends on this class
   flush_dependent_code(the_class, THREAD);