[pypy-commit] pypy stm: print the numeric reason when aborting.
arigo
noreply at buildbot.pypy.org
Sun Jan 22 11:56:45 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: stm
Changeset: r51635:3c073f6abf1a
Date: 2012-01-22 11:56 +0100
http://bitbucket.org/pypy/pypy/changeset/3c073f6abf1a/
Log: print the numeric reason when aborting.
diff --git a/pypy/translator/stm/src_stm/et.c b/pypy/translator/stm/src_stm/et.c
--- a/pypy/translator/stm/src_stm/et.c
+++ b/pypy/translator/stm/src_stm/et.c
@@ -271,8 +271,9 @@
d->num_aborts[reason]++;
#ifdef RPY_STM_DEBUG_PRINT
PYPY_DEBUG_START("stm-abort");
- if (PYPY_HAVE_DEBUG_PRINTS) fprintf(PYPY_DEBUG_FILE, "thread %lx aborting\n",
- (long)pthread_self());
+ if (PYPY_HAVE_DEBUG_PRINTS)
+ fprintf(PYPY_DEBUG_FILE, "thread %lx aborting %d\n",
+ (long)pthread_self(), reason);
PYPY_DEBUG_STOP("stm-abort");
#endif
tx_restart(d);
More information about the pypy-commit
mailing list