8239878: Bug in PrintEliminateAllocations code causes TestClhsdbJstackLock.java to fail

Reviewed-by: shade
This commit is contained in:
Nils Eliasson 2020-02-27 13:11:06 +01:00
parent c8ed0128c2
commit 2ba0575cea

View File

@ -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);
} }