Skip to content

Commit 2ba0575

Browse files
author
Nils Eliasson
committedFeb 27, 2020
8239878: Bug in PrintEliminateAllocations code causes TestClhsdbJstackLock.java to fail
Reviewed-by: shade
1 parent c8ed012 commit 2ba0575

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/hotspot/share/opto/macro.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1629,11 +1629,12 @@ void PhaseMacroExpand::yank_alloc_node(AllocateNode* alloc) {
16291629
}
16301630
#ifndef PRODUCT
16311631
if (PrintEliminateAllocations) {
1632-
if (alloc->is_AllocateArray()) {}
1632+
if (alloc->is_AllocateArray()) {
16331633
tty->print_cr("++++ Eliminated: %d AllocateArray", alloc->_idx);
16341634
} else {
16351635
tty->print_cr("++++ Eliminated: %d Allocate", alloc->_idx);
16361636
}
1637+
}
16371638
#endif
16381639
_igvn.remove_dead_node(alloc);
16391640
}

0 commit comments

Comments
 (0)
Please sign in to comment.