diff --git a/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp b/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp index 8304e40199445c5632e0878bead939e31fa853c8..1e02e0a68fd028e3949f8887f12dd06f6030f4a0 100644 --- a/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp +++ b/src/cpu/sparc/vm/c1_LIRAssembler_sparc.cpp @@ -2717,7 +2717,7 @@ void LIR_Assembler::emit_compare_and_swap(LIR_OpCompareAndSwap* op) { __ encode_heap_oop(t2); __ cas(addr, t1, t2); } else { - __ casx(addr, t1, t2); + __ cas_ptr(addr, t1, t2); } } else { __ cas(addr, t1, t2);