6793828: G1: invariant: queues are empty when activated

Reviewed-by: jrose, kvn
This commit is contained in:
Tom Rodriguez 2009-02-05 11:42:10 -08:00
parent 61c259aeb5
commit 275a0bfb42
2 changed files with 4 additions and 3 deletions

View file

@ -1303,6 +1303,7 @@ Node *LoadNode::Ideal(PhaseGVN *phase, bool can_reshape) {
Node* base = AddPNode::Ideal_base_and_offset(address, phase, ignore);
if (base != NULL
&& phase->type(base)->higher_equal(TypePtr::NOTNULL)
&& phase->C->get_alias_index(phase->type(address)->is_ptr()) != Compile::AliasIdxRaw
&& all_controls_dominate(base, phase->C->start())) {
// A method-invariant, non-null address (constant or 'this' argument).
set_req(MemNode::Control, NULL);