changeset 15760:cbb77ea2a3a3

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
author bpittore
date Thu, 24 Jan 2013 13:27:54 -0500
parents cdf3951d9d65
children a4f42ee045c3 25f878aa5cd8
files hotspot/src/share/vm/c1/c1_LIR.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/c1/c1_LIR.cpp	Tue Feb 12 09:54:34 2013 -0800
+++ b/hotspot/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));
         }