[pypy-commit] stmgc c6: Move this out of the lock

arigo noreply at buildbot.pypy.org
Thu Jan 2 10:26:32 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: c6
Changeset: r591:871467aee622
Date: 2014-01-02 10:23 +0100
http://bitbucket.org/pypy/stmgc/changeset/871467aee622/

Log:	Move this out of the lock

diff --git a/checkfence/c6/test4.c b/checkfence/c6/test4.c
--- a/checkfence/c6/test4.c
+++ b/checkfence/c6/test4.c
@@ -85,11 +85,11 @@
 {
     if (obj[t].flag_modified)
         return;   /* already modified during this transaction */
+    obj[t].flag_modified = true;
 
     stm_read(t);
 
     int is_leader = acquire_lock_if_leader(t);
-    obj[t].flag_modified = true;
     tl[t].n_modified_objects = 1;
     if (is_leader) {
         memcpy_obj_without_header(UNDOLOG, t);


More information about the pypy-commit mailing list