[pypy-commit] stmgc c8-hashtable: fix (thanks Remi)

arigo noreply at buildbot.pypy.org
Wed Mar 11 10:28:09 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: c8-hashtable
Changeset: r1716:e67451e5794e
Date: 2015-03-11 10:28 +0100
http://bitbucket.org/pypy/stmgc/changeset/e67451e5794e/

Log:	fix (thanks Remi)

diff --git a/c8/stm/gcpage.c b/c8/stm/gcpage.c
--- a/c8/stm/gcpage.c
+++ b/c8/stm/gcpage.c
@@ -147,7 +147,7 @@
     ((struct object_s *)dest)->stm_flags = GCFLAG_WRITE_BARRIER;
 
     long j;
-    for (j = 1; j <= NB_SEGMENTS; j++) {
+    for (j = 1; j < NB_SEGMENTS; j++) {
         const char *src = initial_data;
         char *dest = get_segment_base(j) + nobj;
         char *end = dest + size_rounded_up;


More information about the pypy-commit mailing list