[pypy-commit] stmgc default: fix wrong assert

Raemi noreply at buildbot.pypy.org
Wed Oct 23 22:00:32 CEST 2013


Author: Remi Meier <remi.meier at gmail.com>
Branch: 
Changeset: r539:d92fcb9e5246
Date: 2013-10-23 22:00 +0200
http://bitbucket.org/pypy/stmgc/changeset/d92fcb9e5246/

Log:	fix wrong assert

diff --git a/c4/steal.c b/c4/steal.c
--- a/c4/steal.c
+++ b/c4/steal.c
@@ -137,7 +137,8 @@
         assert(IMPLIES(!(L->h_tid & GCFLAG_OLD), L->h_original));
         assert(IMPLIES(L->h_tid & GCFLAG_OLD,
                        (B->h_original == (revision_t)L) 
-                       || (B->h_original == L->h_original)));
+                       || (B->h_original == L->h_original)
+                       || (L->h_original == (revision_t)B)));
         if (!L->h_original && L->h_tid & GCFLAG_OLD) {
             /* If old, L must be the original */
             B->h_original = (revision_t)L;


More information about the pypy-commit mailing list