Author: Armin Rigo <[email protected]>
Branch: copy-over-original2
Changeset: r451:565a8b79ab12
Date: 2013-07-26 16:27 +0200
http://bitbucket.org/pypy/stmgc/changeset/565a8b79ab12/
Log: Fix the assert
diff --git a/c4/et.c b/c4/et.c
--- a/c4/et.c
+++ b/c4/et.c
@@ -569,7 +569,8 @@
gcptr stm_WriteBarrier(gcptr P)
{
assert(!(P->h_tid & GCFLAG_IMMUTABLE));
- assert(stmgc_size(P) > sizeof(struct stm_stub_s) - WORD);
+ assert((P->h_tid & GCFLAG_STUB) ||
+ stmgc_size(P) > sizeof(struct stm_stub_s) - WORD);
/* If stmgc_size(P) gives a number <= sizeof(stub)-WORD, then there is a
risk of overrunning the object later in gcpage.c when copying a stub
over it. However such objects are so small that they contain no field
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit