[pypy-commit] stmgc c8-gil-like: fix
arigo
noreply at buildbot.pypy.org
Thu Jun 11 11:32:55 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: c8-gil-like
Changeset: r1802:cc87f515da59
Date: 2015-06-11 11:33 +0200
http://bitbucket.org/pypy/stmgc/changeset/cc87f515da59/
Log: fix
diff --git a/c8/stm/core.h b/c8/stm/core.h
--- a/c8/stm/core.h
+++ b/c8/stm/core.h
@@ -162,7 +162,6 @@
#ifdef STM_TESTS
SP_WAIT_FOR_OTHER_THREAD,
#endif
- SP_RUNNING_DETACHED_FETCHED,
};
enum /* transaction_state */ {
diff --git a/c8/stm/sync.c b/c8/stm/sync.c
--- a/c8/stm/sync.c
+++ b/c8/stm/sync.c
@@ -423,7 +423,9 @@
intptr_t detached = fetch_detached_transaction();
if (detached != 0) {
remove_requests_for_safe_point(); /* => C_REQUEST_REMOVED */
+ s_mutex_unlock();
commit_fetched_detached_transaction(detached);
+ s_mutex_lock();
goto restart;
}
More information about the pypy-commit
mailing list