changeset 240:a9ec1f7d29d6

6666343: Compile::has_loops not always set correctly Summary: Compile::has_loops() should be set from inlined methods Reviewed-by: kvn, rasbold
author never
date Tue, 18 Mar 2008 11:17:37 -0700
parents fb31825d5444
children 96ca4f142c22
files hotspot/src/share/vm/opto/doCall.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
   }