[pypy-commit] stmgc default: fix 2e0533b4f814
arigo
noreply at buildbot.pypy.org
Mon Mar 24 18:42:19 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1088:256d9b6aba2e
Date: 2014-03-24 18:42 +0100
http://bitbucket.org/pypy/stmgc/changeset/256d9b6aba2e/
Log: fix 2e0533b4f814
diff --git a/c7/stm/weakref.c b/c7/stm/weakref.c
--- a/c7/stm/weakref.c
+++ b/c7/stm/weakref.c
@@ -125,7 +125,9 @@
}
ssize_t size = 16;
- object_t *pointing_to = *WEAKREF_PTR(weakref, size);
+ stm_char *wr = (stm_char *)WEAKREF_PTR(weakref, size);
+ char *real_wr = REAL_ADDRESS(stm_object_pages, wr);
+ object_t *pointing_to = *(object_t **)real_wr;
assert(pointing_to != NULL);
if (!mark_visited_test(pointing_to)) {
//assert(flag_page_private[(uintptr_t)weakref / 4096UL] != PRIVATE_PAGE);
More information about the pypy-commit
mailing list