[pypy-commit] stmgc c7-refactor: Forgot to set 'overflow_number' when doing a non-commit-time nursery collection

arigo noreply at buildbot.pypy.org
Mon Feb 24 17:12:08 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: c7-refactor
Changeset: r837:59bc4d2dd305
Date: 2014-02-24 17:11 +0100
http://bitbucket.org/pypy/stmgc/changeset/59bc4d2dd305/

Log:	Forgot to set 'overflow_number' when doing a non-commit-time nursery
	collection

diff --git a/c7/stm/nursery.c b/c7/stm/nursery.c
--- a/c7/stm/nursery.c
+++ b/c7/stm/nursery.c
@@ -101,6 +101,11 @@
         abort();  //...
     }
 
+    assert((nobj->stm_flags & -GCFLAG_OVERFLOW_NUMBER_bit0) == 0);
+    if (!STM_PSEGMENT->minor_collect_will_commit_now) {
+        nobj->stm_flags |= STM_PSEGMENT->overflow_number;
+    }
+
     /* Done copying the object. */
     //dprintf(("%p -> %p\n", obj, nobj));
     pforwarded_array[0] = GCWORD_MOVED;


More information about the pypy-commit mailing list