[pypy-commit] pypy default: merge heads

mattip noreply at buildbot.pypy.org
Thu Apr 4 22:03:55 CEST 2013


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r63018:6f4b36cb5382
Date: 2013-04-04 23:03 +0300
http://bitbucket.org/pypy/pypy/changeset/6f4b36cb5382/

Log:	merge heads

diff --git a/rpython/rtyper/lltypesystem/rffi.py b/rpython/rtyper/lltypesystem/rffi.py
--- a/rpython/rtyper/lltypesystem/rffi.py
+++ b/rpython/rtyper/lltypesystem/rffi.py
@@ -282,13 +282,13 @@
     args = ', '.join(['a%d' % i for i in range(len(TP.TO.ARGS))])
     source = py.code.Source(r"""
         def wrapper(%(args)s):    # no *args - no GIL for mallocing the tuple
-            llop.gc_stack_bottom(lltype.Void)   # marker for trackgcroot.py
             if aroundstate is not None:
                 after = aroundstate.after
                 if after:
                     after()
             # from now on we hold the GIL
             stackcounter.stacks_counter += 1
+            llop.gc_stack_bottom(lltype.Void)   # marker for trackgcroot.py
             try:
                 result = callable(%(args)s)
             except Exception, e:
diff --git a/rpython/translator/c/src/mem.h b/rpython/translator/c/src/mem.h
--- a/rpython/translator/c/src/mem.h
+++ b/rpython/translator/c/src/mem.h
@@ -210,7 +210,7 @@
         got += 1;
         fd = ((void* *) (((char *)fd) + sizeof(void*)))[0];
     }
-    assert(got == stacks_counter || ((got == 0) && (stacks_counter == 1)));
+    assert(got == stacks_counter - 1);
 #endif
 }
 


More information about the pypy-commit mailing list