changeset 3219:dbd21c7c833f

7152955: print_method crashes with null root Reviewed-by: kvn, never Contributed-by: nils.eliasson@oracle.com
author never
date Tue, 13 Mar 2012 20:54:56 -0700
parents 0f4014d7731b
children 56ee89841dc4
files src/share/vm/opto/compile.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/compile.cpp	Tue Mar 13 10:03:59 2012 -0700
+++ b/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(); )