changeset 59165:c87cb2daad04

8239878: Bug in PrintEliminateAllocations code causes TestClhsdbJstackLock.java to fail Reviewed-by: shade
author neliasso
date Thu, 27 Feb 2020 13:11:06 +0100
parents 495d1a4eee04
children e6336e3c5984
files src/hotspot/share/opto/macro.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/opto/macro.cpp	Thu Feb 27 16:06:43 2020 +0530
+++ b/src/hotspot/share/opto/macro.cpp	Thu Feb 27 13:11:06 2020 +0100
@@ -1629,11 +1629,12 @@
   }
 #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);
 }