[pypy-commit] pypy stm-gc: Fix.
arigo
noreply at buildbot.pypy.org
Sun Feb 19 16:34:27 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r52633:e6052f474569
Date: 2012-02-19 16:29 +0100
http://bitbucket.org/pypy/pypy/changeset/e6052f474569/
Log: Fix.
diff --git a/pypy/translator/stm/gcsource.py b/pypy/translator/stm/gcsource.py
--- a/pypy/translator/stm/gcsource.py
+++ b/pypy/translator/stm/gcsource.py
@@ -87,6 +87,12 @@
v1 = None
resultlist.append((v1, v2))
#
+ # also add as a callee the graphs that are explicitly callees in the
+ # callgraph. Useful because some graphs may end up not being called
+ # any more, if they were inlined.
+ for _, graph in translator.callgraph.itervalues():
+ was_a_callee.add(graph)
+ #
for graph in translator.graphs:
if graph not in was_a_callee:
for v in graph.getargs():
More information about the pypy-commit
mailing list