Author: Remi Meier <[email protected]>
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));
}
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit