[pypy-commit] benchmarks default: Change this old version of pypy to translate on PPC (without stacklets)

arigo noreply at buildbot.pypy.org
Tue Oct 13 09:10:06 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r337:93b19a1dfaf5
Date: 2015-10-13 09:10 +0200
http://bitbucket.org/pypy/benchmarks/changeset/93b19a1dfaf5/

Log:	Change this old version of pypy to translate on PPC (without
	stacklets)

diff --git a/lib/pypy/rpython/memory/gctransform/shadowstack.py b/lib/pypy/rpython/memory/gctransform/shadowstack.py
--- a/lib/pypy/rpython/memory/gctransform/shadowstack.py
+++ b/lib/pypy/rpython/memory/gctransform/shadowstack.py
@@ -400,6 +400,9 @@
         llmemory.raw_free(shadowstackref.base)
         if h:
             _c.destroy(h)
+    if not gctransformer.translator.config.translation.continuation:
+        def shadowstack_destructor(shadowstackref):
+            llmemory.raw_free(shadowstackref.base)
 
     destrptr = gctransformer.annotate_helper(shadowstack_destructor,
                                              [SHADOWSTACKREFPTR], lltype.Void)


More information about the pypy-commit mailing list