Skip to content
Permalink
Browse files
8239878: Bug in PrintEliminateAllocations code causes TestClhsdbJstac…
…kLock.java to fail

Reviewed-by: shade
  • Loading branch information
Nils Eliasson committed Feb 27, 2020
1 parent c8ed012 commit 2ba0575ceabb99b6e03a8811ae4eb11616763def
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/hotspot/share/opto/macro.cpp
@@ -1629,11 +1629,12 @@ void PhaseMacroExpand::yank_alloc_node(AllocateNode* alloc) {
}
#ifndef PRODUCT
if (PrintEliminateAllocations) {
if (alloc->is_AllocateArray()) {}
if (alloc->is_AllocateArray()) {
tty->print_cr("++++ Eliminated: %d AllocateArray", alloc->_idx);
} else {
tty->print_cr("++++ Eliminated: %d Allocate", alloc->_idx);
}
}
#endif
_igvn.remove_dead_node(alloc);
}

0 comments on commit 2ba0575

Please sign in to comment.