[pypy-commit] stmgc c8-hashtable: argh

arigo noreply at buildbot.pypy.org
Thu Mar 12 16:32:17 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: c8-hashtable
Changeset: r1728:dee3d648763d
Date: 2015-03-12 16:32 +0100
http://bitbucket.org/pypy/stmgc/changeset/dee3d648763d/

Log:	argh

diff --git a/c8/stm/gcpage.c b/c8/stm/gcpage.c
--- a/c8/stm/gcpage.c
+++ b/c8/stm/gcpage.c
@@ -157,7 +157,7 @@
         char *end = dest + size_rounded_up;
 
         while (((uintptr_t)dest) / 4096 != ((uintptr_t)end - 1) / 4096) {
-            uintptr_t count = 4096 - ((uintptr_t)dest) / 4096;
+            uintptr_t count = 4096 - (((uintptr_t)dest) & 4095);
             _fill_preexisting_slice(j, dest, src, count);
             src += count;
             dest += count;


More information about the pypy-commit mailing list