[pypy-commit] pypy stacklet: Fix some tests.

arigo noreply at buildbot.pypy.org
Fri Aug 26 16:58:57 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: stacklet
Changeset: r46792:4461bd2c3476
Date: 2011-08-26 16:20 +0200
http://bitbucket.org/pypy/pypy/changeset/4461bd2c3476/

Log:	Fix some tests.

diff --git a/pypy/rpython/memory/gctransform/shadowstack.py b/pypy/rpython/memory/gctransform/shadowstack.py
--- a/pypy/rpython/memory/gctransform/shadowstack.py
+++ b/pypy/rpython/memory/gctransform/shadowstack.py
@@ -27,7 +27,8 @@
         self.decr_stack = decr_stack
 
         translator = gctransformer.translator
-        if hasattr(translator, '_jit2gc'):
+        if (hasattr(translator, '_jit2gc') and
+                'root_iterator' in translator._jit2gc):
             root_iterator = translator._jit2gc['root_iterator']
             def jit_walk_stack_root(callback, addr, end):
                 root_iterator.context = llmemory.NULL


More information about the pypy-commit mailing list