hotspot/src/share/vm/interpreter/interpreterRuntime.cpp
changeset 4567 7fc02fbe5c7a
parent 4429 d7eb4e2099aa
child 4571 80b553bddc26
--- a/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp	Tue Jan 05 13:05:58 2010 +0100
+++ b/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp	Tue Jan 05 15:21:25 2010 +0100
@@ -1250,7 +1250,7 @@
   methodHandle mh(thread, fr.interpreter_frame_method());
   Bytecode_invoke* invoke = Bytecode_invoke_at(mh, bci);
   ArgumentSizeComputer asc(invoke->signature());
-  int size_of_arguments = (asc.size() + (invoke->is_invokestatic() ? 0 : 1)); // receiver
+  int size_of_arguments = (asc.size() + (invoke->has_receiver() ? 1 : 0)); // receiver
   Copy::conjoint_bytes(src_address, dest_address,
                        size_of_arguments * Interpreter::stackElementSize());
 IRT_END