comparison src/share/vm/c1/c1_LinearScan.cpp @ 13044:a905d33ce13a

8027751: C1 crashes in Weblogic with G1 enabled Summary: Keep T_OBJECT operands in registers for logical operations on x64 Reviewed-by: kvn, roland
author iveresov
date Tue, 05 Nov 2013 00:59:30 -0800
parents 9acbfe04b5c3
children de6a9e811145
comparison
equal deleted inserted replaced
13042:208ebea980f8 13044:a905d33ce13a
1136 return shouldHaveRegister; 1136 return shouldHaveRegister;
1137 } 1137 }
1138 } 1138 }
1139 } 1139 }
1140 } 1140 }
1141 1141 // We want to sometimes use logical operations on pointers, in particular in GC barriers.
1142 } else if (opr_type != T_LONG) { 1142 // Since 64bit logical operations do not current support operands on stack, we have to make sure
1143 // T_OBJECT doesn't get spilled along with T_LONG.
1144 } else if (opr_type != T_LONG LP64_ONLY(&& opr_type != T_OBJECT)) {
1143 // integer instruction (note: long operands must always be in register) 1145 // integer instruction (note: long operands must always be in register)
1144 switch (op->code()) { 1146 switch (op->code()) {
1145 case lir_cmp: 1147 case lir_cmp:
1146 case lir_add: 1148 case lir_add:
1147 case lir_sub: 1149 case lir_sub: