[pypy-commit] stmgc c7-refactor: Kill this logic and comment; no longer applies.
arigo
noreply at buildbot.pypy.org
Wed Feb 26 16:29:11 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: c7-refactor
Changeset: r875:6da8d8bef599
Date: 2014-02-26 16:28 +0100
http://bitbucket.org/pypy/stmgc/changeset/6da8d8bef599/
Log: Kill this logic and comment; no longer applies.
diff --git a/c7/stm/core.c b/c7/stm/core.c
--- a/c7/stm/core.c
+++ b/c7/stm/core.c
@@ -172,12 +172,7 @@
uint8_t old_rv = STM_SEGMENT->transaction_read_version;
STM_SEGMENT->transaction_read_version = old_rv + 1;
- if (UNLIKELY(old_rv >= 0xfe)) {
- /* reset if transaction_read_version was 0xfe or 0xff. If it's
- 0xff, then we need it because the new value would overflow to
- 0. But resetting it already from 0xfe is better for short
- or medium transactions: at the next minor collection we'll
- still have one free number to increase to. */
+ if (UNLIKELY(old_rv == 0xff)) {
reset_transaction_read_version();
}
More information about the pypy-commit
mailing list