7004530: casx used for 32 bit cas after 7003554

Reviewed-by: kvn, iveresov
This commit is contained in:
Tom Rodriguez 2010-12-03 12:14:33 -08:00
parent bd6731ae92
commit f74039fd41

View file

@ -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);