hotspot/src/share/vm/prims/methodHandleWalk.cpp
changeset 7426 dba53a0065f8
parent 7397 5b173b4ca846
child 7888 1be03febacc2
--- a/hotspot/src/share/vm/prims/methodHandleWalk.cpp	Tue Nov 23 13:22:55 2010 -0800
+++ b/hotspot/src/share/vm/prims/methodHandleWalk.cpp	Tue Nov 30 09:53:04 2010 -0800
@@ -968,16 +968,11 @@
 
   if (tailcall) {
     // Actually, in order to make these methods more recognizable,
-    // let's put them in holder classes MethodHandle and InvokeDynamic.
-    // That way stack walkers and compiler heuristics can recognize them.
-    _target_klass = (for_invokedynamic()
-                     ? SystemDictionary::InvokeDynamic_klass()
-                     : SystemDictionary::MethodHandle_klass());
+    // let's put them in holder class MethodHandle.  That way stack
+    // walkers and compiler heuristics can recognize them.
+    _target_klass = SystemDictionary::MethodHandle_klass();
   }
 
-  // instanceKlass* ik = instanceKlass::cast(klass);
-  // tty->print_cr("MethodHandleCompiler::make_invoke: %s %s.%s%s", Bytecodes::name(op), ik->external_name(), name->as_C_string(), signature->as_C_string());
-
   // Inline the method.
   InvocationCounter* ic = m->invocation_counter();
   ic->set_carry_flag();