hotspot/src/share/vm/opto/compile.cpp
changeset 238 803c80713999
parent 211 e2b60448c234
child 347 df859fcca515
--- a/hotspot/src/share/vm/opto/compile.cpp	Thu Mar 13 16:31:32 2008 -0700
+++ b/hotspot/src/share/vm/opto/compile.cpp	Fri Mar 14 15:26:33 2008 -0700
@@ -407,11 +407,6 @@
   return buf.code_size();
 }
 
-void  Compile::record_for_escape_analysis(Node* n) {
-  if (_congraph != NULL)
-    _congraph->record_for_escape_analysis(n);
-}
-
 
 // ============================================================================
 //------------------------------Compile standard-------------------------------
@@ -494,9 +489,6 @@
   PhaseGVN gvn(node_arena(), estimated_size);
   set_initial_gvn(&gvn);
 
-  if (_do_escape_analysis)
-    _congraph = new ConnectionGraph(this);
-
   { // Scope for timing the parser
     TracePhase t3("parse", &_t_parser, true);
 
@@ -581,6 +573,8 @@
   NOT_PRODUCT( verify_graph_edges(); )
 
   // Perform escape analysis
+  if (_do_escape_analysis)
+    _congraph = new ConnectionGraph(this);
   if (_congraph != NULL) {
     NOT_PRODUCT( TracePhase t2("escapeAnalysis", &_t_escapeAnalysis, TimeCompiler); )
     _congraph->compute_escape();