Author: Armin Rigo <[email protected]>
Branch:
Changeset: r94:0bdc2d4e6f29
Date: 2013-06-12 11:22 +0200
http://bitbucket.org/pypy/stmgc/changeset/0bdc2d4e6f29/
Log: Wrote bogus value: it needs to be new_revision (which is cur_time +
1).
diff --git a/c4/et.c b/c4/et.c
--- a/c4/et.c
+++ b/c4/et.c
@@ -839,6 +839,8 @@
{
long i, size = d->private_from_protected.size;
gcptr *items = d->private_from_protected.items;
+ revision_t new_revision = cur_time + 1; // make an odd number
+ assert(new_revision & 1);
for (i = 0; i < size; i++)
{
@@ -856,7 +858,7 @@
}
gcptr B = (gcptr)P->h_revision;
- P->h_revision = cur_time;
+ P->h_revision = new_revision;
if (B->h_tid & GCFLAG_PUBLIC)
{
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit