Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76627:8c146378bebe
Date: 2015-03-29 19:40 +0200
http://bitbucket.org/pypy/pypy/changeset/8c146378bebe/
Log: Improve the CollectAnalyzer to not crash when reporting a wrong
'@rgc.no_collect'
diff --git a/rpython/memory/gctransform/framework.py
b/rpython/memory/gctransform/framework.py
--- a/rpython/memory/gctransform/framework.py
+++ b/rpython/memory/gctransform/framework.py
@@ -36,7 +36,10 @@
return graphanalyze.BoolGraphAnalyzer.analyze_direct_call(self, graph,
seen)
def analyze_external_call(self, op, seen=None):
- funcobj = op.args[0].value._obj
+ try:
+ funcobj = op.args[0].value._obj
+ except lltype.DelayedPointer:
+ return True
if getattr(funcobj, 'random_effects_on_gcobjs', False):
return True
return graphanalyze.BoolGraphAnalyzer.analyze_external_call(self, op,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit