8239878: Bug in PrintEliminateAllocations code causes TestClhsdbJstackLock.java to fail
Reviewed-by: shade
This commit is contained in:
parent
c8ed0128c2
commit
2ba0575cea
@ -1629,11 +1629,12 @@ void PhaseMacroExpand::yank_alloc_node(AllocateNode* alloc) {
|
|||||||
}
|
}
|
||||||
#ifndef PRODUCT
|
#ifndef PRODUCT
|
||||||
if (PrintEliminateAllocations) {
|
if (PrintEliminateAllocations) {
|
||||||
if (alloc->is_AllocateArray()) {}
|
if (alloc->is_AllocateArray()) {
|
||||||
tty->print_cr("++++ Eliminated: %d AllocateArray", alloc->_idx);
|
tty->print_cr("++++ Eliminated: %d AllocateArray", alloc->_idx);
|
||||||
} else {
|
} else {
|
||||||
tty->print_cr("++++ Eliminated: %d Allocate", alloc->_idx);
|
tty->print_cr("++++ Eliminated: %d Allocate", alloc->_idx);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
_igvn.remove_dead_node(alloc);
|
_igvn.remove_dead_node(alloc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user