Author: Remi Meier <[email protected]>
Branch: c7
Changeset: r627:92e6ecac7c9d
Date: 2014-01-17 15:11 +0100
http://bitbucket.org/pypy/stmgc/changeset/92e6ecac7c9d/
Log: small fix
diff --git a/c7/test/support.py b/c7/test/support.py
--- a/c7/test/support.py
+++ b/c7/test/support.py
@@ -330,10 +330,11 @@
def switch(self, thread_num):
assert thread_num != self.current_thread
+ self.current_thread = thread_num
if lib._stm_is_in_transaction():
stm_start_safe_point()
lib._stm_restore_local_state(thread_num)
if lib._stm_is_in_transaction():
stm_stop_safe_point()
- self.current_thread = thread_num
+
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit