6992477: fix for 6991512 broke sparc barriers

Reviewed-by: kvn, iveresov
This commit is contained in:
Tom Rodriguez 2010-10-15 14:21:11 -07:00
parent ec8fa4caa2
commit e4f08bc195
4 changed files with 3 additions and 4 deletions

View file

@ -664,7 +664,7 @@ void LIRGenerator::do_CompareAndSwap(Intrinsic* x, ValueType* type) {
// Use temps to avoid kills
LIR_Opr t1 = FrameMap::G1_opr;
LIR_Opr t2 = FrameMap::G3_opr;
LIR_Opr addr = (type == objectType) ? new_register(T_OBJECT) : new_pointer_register();
LIR_Opr addr = new_pointer_register();
// get address of field
obj.load_item();