Author: Remi Meier <[email protected]>
Branch:
Changeset: r506:aac891340816
Date: 2013-08-30 17:12 +0200
http://bitbucket.org/pypy/stmgc/changeset/aac891340816/
Log: if atomic and inevitable, don't change reads_size_limit_nonatomic
diff --git a/c4/stmsync.c b/c4/stmsync.c
--- a/c4/stmsync.c
+++ b/c4/stmsync.c
@@ -167,7 +167,7 @@
has configured 'reads_size_limit_nonatomic' to a smaller value.
When such a shortened transaction succeeds, the next one will
see its length limit doubled, up to the maximum. */
- if (counter == 0) {
+ if (counter == 0 && d->active != 2) {
unsigned long limit = d->reads_size_limit_nonatomic;
if (limit != 0 && limit < (stm_regular_length_limit >> 1))
limit = (limit << 1) | 1;
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit