6965570: assert(!needs_patching && x->is_loaded(),"how do we know it's volatile if it's not loaded")

Reviewed-by: iveresov
This commit is contained in:
Tom Rodriguez 2011-03-06 22:09:23 -08:00
parent 8f5e126d82
commit 84ef74286f
5 changed files with 30 additions and 42 deletions

View file

@ -141,7 +141,8 @@ class ValueNumberingVisitor: public InstructionVisitor {
// visitor functions
void do_StoreField (StoreField* x) {
if (!x->is_initialized()) {
if (x->is_init_point()) {
// putstatic is an initialization point so treat it as a wide kill
kill_memory();
} else {
kill_field(x->field());
@ -159,7 +160,8 @@ class ValueNumberingVisitor: public InstructionVisitor {
void do_Local (Local* x) { /* nothing to do */ }
void do_Constant (Constant* x) { /* nothing to do */ }
void do_LoadField (LoadField* x) {
if (!x->is_initialized()) {
if (x->is_init_point()) {
// getstatic is an initialization point so treat it as a wide kill
kill_memory();
}
}