7152955: print_method crashes with null root
authornever
Tue, 13 Mar 2012 20:54:56 -0700
changeset 12161 081f2b3f1823
parent 12160 c3ce1d6b88e1
child 12162 c802a72c356b
7152955: print_method crashes with null root Reviewed-by: kvn, never Contributed-by: nils.eliasson@oracle.com
hotspot/src/share/vm/opto/compile.cpp
--- a/hotspot/src/share/vm/opto/compile.cpp	Tue Mar 13 10:03:59 2012 -0700
+++ b/hotspot/src/share/vm/opto/compile.cpp	Tue Mar 13 20:54:56 2012 -0700
@@ -1875,10 +1875,10 @@
 
     cfg.Estimate_Block_Frequency();
     cfg.GlobalCodeMotion(m,unique(),proj_list);
+    if (failing())  return;
 
     print_method("Global code motion", 2);
 
-    if (failing())  return;
     NOT_PRODUCT( verify_graph_edges(); )
 
     debug_only( cfg.verify(); )