--- a/hotspot/src/share/vm/opto/escape.cpp Wed Nov 04 14:16:20 2009 -0800
+++ b/hotspot/src/share/vm/opto/escape.cpp Wed Nov 04 14:43:50 2009 -0800
@@ -537,8 +537,9 @@
}
const TypeOopPtr *tinst = base_t->add_offset(t->offset())->is_oopptr();
- // Do NOT remove the next call: ensure an new alias index is allocated
- // for the instance type
+ // Do NOT remove the next line: ensure a new alias index is allocated
+ // for the instance type. Note: C++ will not remove it since the call
+ // has side effect.
int alias_idx = _compile->get_alias_index(tinst);
igvn->set_type(addp, tinst);
// record the allocation in the node map