hotspot/src/share/vm/prims/methodHandleWalk.cpp
changeset 9943 a9aea2b8010f
parent 9638 a9e79f5cd83b
child 9946 b3d5b50e2289
--- a/hotspot/src/share/vm/prims/methodHandleWalk.cpp	Mon May 16 22:16:44 2011 -0700
+++ b/hotspot/src/share/vm/prims/methodHandleWalk.cpp	Tue May 17 16:50:27 2011 +0200
@@ -423,6 +423,7 @@
           arglist[1+i] = arg;
           if (!retain_original_args)
             change_argument(arg_type, slot, T_VOID, ArgToken(tt_void));
+          i++;
         }
         arglist[1+argc] = ArgToken();  // sentinel
         oop invoker = java_lang_invoke_MethodTypeForm::vmlayout(
@@ -487,7 +488,7 @@
         arglist[1] = length_arg;  // length to check
         arglist[2] = ArgToken();  // sentinel
         make_invoke(NULL, vmIntrinsics::_checkSpreadArgument,
-                    Bytecodes::_invokestatic, false, 3, &arglist[0], CHECK_(empty));
+                    Bytecodes::_invokestatic, false, 2, &arglist[0], CHECK_(empty));
 
         // Spread out the array elements.
         Bytecodes::Code aload_op = Bytecodes::_nop;