[pypy-commit] stmgc default: Fix for d8fe314589b8

arigo noreply at buildbot.pypy.org
Tue Mar 25 10:02:48 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1093:5575626c8253
Date: 2014-03-25 10:02 +0100
http://bitbucket.org/pypy/stmgc/changeset/5575626c8253/

Log:	Fix for d8fe314589b8

diff --git a/c7/stm/weakref.c b/c7/stm/weakref.c
--- a/c7/stm/weakref.c
+++ b/c7/stm/weakref.c
@@ -126,7 +126,7 @@
 
             ssize_t size = 16;
             stm_char *wr = (stm_char *)WEAKREF_PTR(weakref, size);
-            char *real_wr = REAL_ADDRESS(stm_object_pages, wr);
+            char *real_wr = REAL_ADDRESS(pseg->pub.segment_base, wr);
             object_t *pointing_to = *(object_t **)real_wr;
             assert(pointing_to != NULL);
             if (!mark_visited_test(pointing_to)) {


More information about the pypy-commit mailing list