Author: Armin Rigo <ar...@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); _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit