[pypy-commit] pypy stm-gc: Add an essential assert. I think it is broken right now.
arigo
noreply at buildbot.pypy.org
Fri Apr 20 19:02:34 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r54585:ef84ff47459d
Date: 2012-04-20 17:59 +0200
http://bitbucket.org/pypy/pypy/changeset/ef84ff47459d/
Log: Add an essential assert. I think it is broken right now. Will write
comments...
diff --git a/pypy/module/transaction/interp_transaction.py b/pypy/module/transaction/interp_transaction.py
--- a/pypy/module/transaction/interp_transaction.py
+++ b/pypy/module/transaction/interp_transaction.py
@@ -223,6 +223,7 @@
def _setup_thread(_, retry_counter):
"""Setup a thread. Run as a transaction because it allocates."""
+ assert state.running
my_thread_id = rstm.thread_id()
my_ec = state.space.createexecutioncontext()
state.add_thread(my_thread_id, my_ec)
More information about the pypy-commit
mailing list