Author: Armin Rigo <[email protected]>
Branch:
Changeset: r320:f88a2e8e6b8e
Date: 2013-06-30 19:10 +0200
http://bitbucket.org/pypy/stmgc/changeset/f88a2e8e6b8e/
Log: Re-add counting reads
diff --git a/c4/et.c b/c4/et.c
--- a/c4/et.c
+++ b/c4/et.c
@@ -213,6 +213,7 @@
/* The risks are that the following assert fails, because the flag was
added just now by a parallel thread during stealing... */
/*assert(!(P->h_tid & GCFLAG_NURSERY_MOVED));*/
+ d->count_reads++;
fxcache_add(&d->recent_reads_cache, P);
return P;
@@ -600,6 +601,7 @@
record_write_barrier(W);
}
+ d->count_reads++;
spinlock_release(d->public_descriptor->collection_lock);
dprintf(("write_barrier: %p -> %p -> %p\n", P, R, W));
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit