[pypy-commit] pypy recursion_and_inlining: Add output to JIT logging informing people of when recursive functions have stopped being inlined.
ltratt
noreply at buildbot.pypy.org
Tue Dec 9 17:29:49 CET 2014
Author: Laurence Tratt <laurie at tratt.net>
Branch: recursion_and_inlining
Changeset: r74866:8b9a6b6f9c9d
Date: 2014-12-09 15:44 +0000
http://bitbucket.org/pypy/pypy/changeset/8b9a6b6f9c9d/
Log: Add output to JIT logging informing people of when recursive
functions have stopped being inlined.
diff --git a/rpython/jit/metainterp/pyjitpl.py b/rpython/jit/metainterp/pyjitpl.py
--- a/rpython/jit/metainterp/pyjitpl.py
+++ b/rpython/jit/metainterp/pyjitpl.py
@@ -978,6 +978,9 @@
# inlining it further and to make sure that, if it
# hasn't happened already, the function is traced
# separately as soon as possible.
+ if have_debug_prints():
+ loc = targetjitdriver_sd.warmstate.get_location_str(greenboxes)
+ debug_print("recursive function (not inlined):", loc)
warmrunnerstate.dont_trace_here(greenboxes)
else:
return self.metainterp.perform_call(portal_code, allboxes,
More information about the pypy-commit
mailing list