1.1 --- a/src/share/vm/opto/callGenerator.cpp Thu Jul 03 12:59:11 2014 -0700 1.2 +++ b/src/share/vm/opto/callGenerator.cpp Wed Jul 02 22:54:18 2014 +0200 1.3 @@ -837,8 +837,11 @@ 1.4 Node* receiver_node = kit.argument(0); 1.5 const TypeOopPtr* receiver_type = gvn.type(receiver_node)->isa_oopptr(); 1.6 // call_does_dispatch and vtable_index are out-parameters. They might be changed. 1.7 - target = C->optimize_virtual_call(caller, jvms->bci(), klass, target, receiver_type, 1.8 - is_virtual, 1.9 + // optimize_virtual_call() takes 2 different holder 1.10 + // arguments for a corner case that doesn't apply here (see 1.11 + // Parse::do_call()) 1.12 + target = C->optimize_virtual_call(caller, jvms->bci(), klass, klass, 1.13 + target, receiver_type, is_virtual, 1.14 call_does_dispatch, vtable_index); // out-parameters 1.15 // We lack profiling at this call but type speculation may 1.16 // provide us with a type