[pypy-commit] stmgc c8-new-page-handling: fix invalid argument to mmap

Raemi noreply at buildbot.pypy.org
Fri Sep 19 14:30:39 CEST 2014


Author: Remi Meier <remi.meier at inf.ethz.ch>
Branch: c8-new-page-handling
Changeset: r1400:d41bdd1f1bf4
Date: 2014-09-19 14:17 +0200
http://bitbucket.org/pypy/stmgc/changeset/d41bdd1f1bf4/

Log:	fix invalid argument to mmap

diff --git a/c8/stm/pages.c b/c8/stm/pages.c
--- a/c8/stm/pages.c
+++ b/c8/stm/pages.c
@@ -64,7 +64,7 @@
     char *result = mmap(
         addr, 4096UL, PROT_READ | PROT_WRITE,
         MAP_FIXED | MAP_PRIVATE | MAP_NORESERVE,
-        stm_object_pages_fd, get_file_page_of(pagenum));
+        stm_object_pages_fd, get_file_page_of(pagenum) * 4096UL);
     if (result == MAP_FAILED)
         stm_fatalerror("page_privatize_in failed (mmap): %m");
 


More information about the pypy-commit mailing list