6666343: Compile::has_loops not always set correctly
authornever
Tue, 18 Mar 2008 11:17:37 -0700
changeset 240 a9ec1f7d29d6
parent 239 fb31825d5444
child 241 96ca4f142c22
6666343: Compile::has_loops not always set correctly Summary: Compile::has_loops() should be set from inlined methods Reviewed-by: kvn, rasbold
hotspot/src/share/vm/opto/doCall.cpp
--- a/hotspot/src/share/vm/opto/doCall.cpp	Fri Mar 14 16:40:42 2008 -0700
+++ b/hotspot/src/share/vm/opto/doCall.cpp	Tue Mar 18 11:17:37 2008 -0700
@@ -390,6 +390,8 @@
   }
 
   if (cg->is_inline()) {
+    // Accumulate has_loops estimate
+    C->set_has_loops(C->has_loops() || call_method->has_loops());
     C->env()->notice_inlined_method(call_method);
   }