comparison src/share/vm/c1/c1_Canonicalizer.cpp @ 2352:425688247f3d

6965570: assert(!needs_patching && x->is_loaded(),"how do we know it's volatile if it's not loaded") Reviewed-by: iveresov
author never
date Sun, 06 Mar 2011 22:09:23 -0800
parents 403dc4c1d7f5
children 80107dc493db
comparison
equal deleted inserted replaced
2351:8e72cd29b15d 2352:425688247f3d
207 case Bytecodes::_i2c: if (type == T_CHAR || type == T_BYTE) value = conv->value(); break; 207 case Bytecodes::_i2c: if (type == T_CHAR || type == T_BYTE) value = conv->value(); break;
208 } 208 }
209 // limit this optimization to current block 209 // limit this optimization to current block
210 if (value != NULL && in_current_block(conv)) { 210 if (value != NULL && in_current_block(conv)) {
211 set_canonical(new StoreField(x->obj(), x->offset(), x->field(), value, x->is_static(), 211 set_canonical(new StoreField(x->obj(), x->offset(), x->field(), value, x->is_static(),
212 x->state_before(), x->is_loaded(), x->is_initialized())); 212 x->state_before(), x->needs_patching()));
213 return; 213 return;
214 } 214 }
215 } 215 }
216 216
217 } 217 }