[pypy-commit] pypy default: Add a check

arigo noreply at buildbot.pypy.org
Sun Sep 7 09:30:34 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r73357:a54f4f1af1fc
Date: 2014-09-07 09:25 +0200
http://bitbucket.org/pypy/pypy/changeset/a54f4f1af1fc/

Log:	Add a check

diff --git a/rpython/memory/gctransform/asmgcroot.py b/rpython/memory/gctransform/asmgcroot.py
--- a/rpython/memory/gctransform/asmgcroot.py
+++ b/rpython/memory/gctransform/asmgcroot.py
@@ -517,6 +517,8 @@
                       "anywhere I know, bug in asmgcc")
             # fish the depth
             extra_stack_depth = (ebp_in_caller + STACK_DEPTH_OFS).signed[0]
+            ll_assert((extra_stack_depth & (rffi.sizeof(lltype.Signed) - 1))
+                       == 0, "asmgcc: misaligned extra_stack_depth")
             extra_stack_depth //= rffi.sizeof(lltype.Signed)
             self._shape_decompressor.setjitframe(extra_stack_depth)
             return


More information about the pypy-commit mailing list