1.1 --- a/src/share/vm/c1/c1_LIR.cpp Fri Jun 08 16:21:38 2018 +0800 1.2 +++ b/src/share/vm/c1/c1_LIR.cpp Mon Jun 11 16:44:16 2018 +0800 1.3 @@ -1657,8 +1657,6 @@ 1.4 append(c); 1.5 } 1.6 1.7 - 1.8 -#ifndef MIPS 1.9 void LIR_List::cas_long(LIR_Opr addr, LIR_Opr cmp_value, LIR_Opr new_value, 1.10 LIR_Opr t1, LIR_Opr t2, LIR_Opr result) { 1.11 append(new LIR_OpCompareAndSwap(lir_cas_long, addr, cmp_value, new_value, t1, t2, result)); 1.12 @@ -1673,43 +1671,6 @@ 1.13 LIR_Opr t1, LIR_Opr t2, LIR_Opr result) { 1.14 append(new LIR_OpCompareAndSwap(lir_cas_int, addr, cmp_value, new_value, t1, t2, result)); 1.15 } 1.16 -#else 1.17 -void LIR_List::cas_long(LIR_Opr addr, LIR_Opr cmp_value, LIR_Opr new_value, LIR_Opr t1, LIR_Opr t2, LIR_Opr result) { 1.18 - // Compare and swap produces condition code "zero" if contents_of(addr) == cmp_value, 1.19 - // // implying successful swap of new_value into addr 1.20 - append(new LIR_OpCompareAndSwap(lir_cas_long, 1.21 - addr, 1.22 - cmp_value, 1.23 - new_value, 1.24 - t1, 1.25 - t2, 1.26 - result)); 1.27 -} 1.28 - 1.29 -void LIR_List::cas_obj(LIR_Opr addr, LIR_Opr cmp_value, LIR_Opr new_value, LIR_Opr t1, LIR_Opr t2, LIR_Opr result) { 1.30 - // Compare and swap produces condition code "zero" if contents_of(addr) == cmp_value, 1.31 - // // implying successful swap of new_value into addr 1.32 - append(new LIR_OpCompareAndSwap(lir_cas_obj, 1.33 - addr, 1.34 - cmp_value, 1.35 - new_value, 1.36 - t1, 1.37 - t2, 1.38 - result)); 1.39 -} 1.40 - 1.41 -void LIR_List::cas_int(LIR_Opr addr, LIR_Opr cmp_value, LIR_Opr new_value, LIR_Opr t1, LIR_Opr t2, LIR_Opr result) { 1.42 - // Compare and swap produces condition code "zero" if contents_of(addr) == cmp_value, 1.43 - // // implying successful swap of new_value into addr 1.44 - append(new LIR_OpCompareAndSwap(lir_cas_int, 1.45 - addr, 1.46 - cmp_value, 1.47 - new_value, 1.48 - t1, 1.49 - t2, 1.50 - result)); 1.51 -} 1.52 -#endif 1.53 1.54 1.55 #ifdef PRODUCT