# HG changeset patch # User bpittore # Date 1359052074 18000 # Node ID 84a926fe53d008fca6af68b3b9c33cb9cb9450ee # Parent 6c2da81297c5912c6932f94f7777517c3f8227f9 8005722: Assert in c1_LIR.hpp incorrect wrt to number of register operands Summary: In LIR_OpVisitState::visit() the receiver operand is processed twice Reviewed-by: roland, vladidan diff -r 6c2da81297c5 -r 84a926fe53d0 src/share/vm/c1/c1_LIR.cpp --- a/src/share/vm/c1/c1_LIR.cpp Tue Feb 12 09:54:34 2013 -0800 +++ b/src/share/vm/c1/c1_LIR.cpp Thu Jan 24 13:27:54 2013 -0500 @@ -814,7 +814,7 @@ // only visit register parameters int n = opJavaCall->_arguments->length(); - for (int i = 0; i < n; i++) { + for (int i = opJavaCall->_receiver->is_valid() ? 1 : 0; i < n; i++) { if (!opJavaCall->_arguments->at(i)->is_pointer()) { do_input(*opJavaCall->_arguments->adr_at(i)); }