[pypy-commit] stmgc c8-private-pages: fix this debug check
Raemi
noreply at buildbot.pypy.org
Wed Jan 14 14:08:44 CET 2015
Author: Remi Meier <remi.meier at inf.ethz.ch>
Branch: c8-private-pages
Changeset: r1527:9d6e43eac521
Date: 2015-01-14 14:08 +0100
http://bitbucket.org/pypy/stmgc/changeset/9d6e43eac521/
Log: fix this debug check
diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -64,8 +64,8 @@
dst = REAL_ADDRESS(STM_SEGMENT->segment_base, oslice);
memcpy(dst, src, SLICE_SIZE(undo->slice));
- if (src_segment_base == NULL) {
- /* backups never should have WB_EXECUTED */
+ if (src_segment_base == NULL && SLICE_OFFSET(undo->slice) == 0) {
+ /* check that restored obj doesn't have WB_EXECUTED */
assert(!(obj->stm_flags & GCFLAG_WB_EXECUTED));
}
}
More information about the pypy-commit
mailing list