Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 659793003: Fix issue 21159: prevent endless inlining of field dispatchers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/language/isssue_21159.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 41152)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -47,8 +47,7 @@
DEFINE_FLAG(int, inlining_hotness, 10,
"Inline only hotter calls, in percents (0 .. 100); "
"default 10%: calls above-equal 10% of max-count are inlined.");
-DEFINE_FLAG(bool, inline_recursive, true,
- "Inline recursive calls.");
+DEFINE_FLAG(bool, inline_recursive, false, "Inline recursive calls.");
DEFINE_FLAG(int, max_inlined_per_depth, 500,
"Max. number of inlined calls per depth");
DEFINE_FLAG(bool, print_inlining_tree, false, "Print inlining tree");
@@ -764,11 +763,12 @@
&call_data->caller, &function, call_data->call);
return false;
}
-
if (function.IsInvokeFieldDispatcher() ||
function.IsNoSuchMethodDispatcher()) {
// Append call sites to the currently processed list so that dispatcher
// methods get inlined regardless of the current depth.
+ // Need a throttling mechanism for recursive inlining.
+ ASSERT(!FLAG_inline_recursive);
inlining_call_sites_->FindCallSites(callee_graph,
0,
zerny-google 2014/10/20 11:28:21 DBC: It seems this issue is caused by ignoring the
Florian Schneider 2014/10/20 14:01:56 I agree that a separate threshold for recursive in
&inlined_info_);
« no previous file with comments | « no previous file | tests/language/isssue_21159.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698