Author: Armin Rigo <[email protected]>
Branch: c8-gil-like
Changeset: r1816:f97d3ff65683
Date: 2015-06-12 14:07 +0200
http://bitbucket.org/pypy/stmgc/changeset/f97d3ff65683/

Log:    Add the logic here, but commented out for now

diff --git a/c8/stm/gcpage.c b/c8/stm/gcpage.c
--- a/c8/stm/gcpage.c
+++ b/c8/stm/gcpage.c
@@ -188,6 +188,13 @@
 
 static void major_collection_with_mutex(void)
 {
+    /* XXX unclear: force-commit a detached transaction before major GC, for
+       the purpose of letting other threads notice that they are doomed anyway
+    */
+    //intptr_t detached = fetch_detached_transaction();
+    //if (detached != 0) {
+    //    commit_fetched_detached_transaction(detached);
+
     timing_event(STM_SEGMENT->running_thread, STM_GC_MAJOR_START);
 
     synchronize_all_threads(STOP_OTHERS_UNTIL_MUTEX_UNLOCK);
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to