[pypy-commit] stmgc c8-new-page-handling: lock fixes

arigo noreply at buildbot.pypy.org
Tue Sep 23 20:50:45 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: c8-new-page-handling
Changeset: r1415:5c6e27d8a4f9
Date: 2014-09-23 20:42 +0200
http://bitbucket.org/pypy/stmgc/changeset/5c6e27d8a4f9/

Log:	lock fixes

diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -147,6 +147,7 @@
     }
 
     release_modified_objs_lock(shared_page_holder);
+    release_all_privatization_locks();
 }
 
 static void _signal_handler(int sig, siginfo_t *siginfo, void *context)
@@ -279,7 +280,9 @@
                    then we will proceed below to update our segment from
                    the old (but unmodified) version to the newer version. */
                 if (!needs_abort) {
+                    release_modified_objs_lock(STM_SEGMENT->segment_num);
                     reset_modified_from_backup_copies(STM_SEGMENT->segment_num);
+                    acquire_modified_objs_lock(STM_SEGMENT->segment_num);
                     needs_abort = true;
                 }
             }


More information about the pypy-commit mailing list