From ea28f4706267a3116e3932d52e4c169eecd2bce6 Mon Sep 17 00:00:00 2001 From: Nils Eliasson Date: Tue, 13 Mar 2012 20:54:56 -0700 Subject: [PATCH] 7152955: print_method crashes with null root Reviewed-by: kvn, never --- hotspot/src/share/vm/opto/compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/opto/compile.cpp b/hotspot/src/share/vm/opto/compile.cpp index c4894542f2b..0a374d792f2 100644 --- a/hotspot/src/share/vm/opto/compile.cpp +++ b/hotspot/src/share/vm/opto/compile.cpp @@ -1875,10 +1875,10 @@ void Compile::Code_Gen() { 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(); )