diff -r f4f540f0461b -r 87ee44a01d68 src/share/vm/c1/c1_LIR.cpp --- a/src/share/vm/c1/c1_LIR.cpp Fri Jun 08 16:21:38 2018 +0800 +++ b/src/share/vm/c1/c1_LIR.cpp Mon Jun 11 16:44:16 2018 +0800 @@ -1657,8 +1657,6 @@ append(c); } - -#ifndef MIPS 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) { append(new LIR_OpCompareAndSwap(lir_cas_long, addr, cmp_value, new_value, t1, t2, result)); @@ -1673,43 +1671,6 @@ LIR_Opr t1, LIR_Opr t2, LIR_Opr result) { append(new LIR_OpCompareAndSwap(lir_cas_int, addr, cmp_value, new_value, t1, t2, result)); } -#else -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) { - // Compare and swap produces condition code "zero" if contents_of(addr) == cmp_value, - // // implying successful swap of new_value into addr - append(new LIR_OpCompareAndSwap(lir_cas_long, - addr, - cmp_value, - new_value, - t1, - t2, - result)); -} - -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) { - // Compare and swap produces condition code "zero" if contents_of(addr) == cmp_value, - // // implying successful swap of new_value into addr - append(new LIR_OpCompareAndSwap(lir_cas_obj, - addr, - cmp_value, - new_value, - t1, - t2, - result)); -} - -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) { - // Compare and swap produces condition code "zero" if contents_of(addr) == cmp_value, - // // implying successful swap of new_value into addr - append(new LIR_OpCompareAndSwap(lir_cas_int, - addr, - cmp_value, - new_value, - t1, - t2, - result)); -} -#endif #ifdef PRODUCT