7152955: print_method crashes with null root
Reviewed-by: kvn, never
Contributed-by: nils.eliasson@oracle.com
--- 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(); )