[pypy-commit] stmgc c7: small fix

Raemi noreply at buildbot.pypy.org
Fri Jan 17 15:11:36 CET 2014


Author: Remi Meier <remi.meier at gmail.com>
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
+
         


More information about the pypy-commit mailing list