Author: Armin Rigo <[email protected]>
Branch: queue
Changeset: r1873:0ef378d2da3d
Date: 2015-06-19 00:28 +0200
http://bitbucket.org/pypy/stmgc/changeset/0ef378d2da3d/

Log:    oups

diff --git a/c8/stm/queue.c b/c8/stm/queue.c
--- a/c8/stm/queue.c
+++ b/c8/stm/queue.c
@@ -387,6 +387,7 @@
 static void collect_active_queues(void)
 {
     wlog_t *item;
+    queue_lock_acquire();
     TREE_LOOP_FORWARD(STM_PSEGMENT->active_queues, item) {
         /* it is enough to trace the objects added in the current
            transaction.  All other objects reachable from the queue
@@ -406,4 +407,5 @@
             seg->added_young_limit = seg->added_in_this_transaction;
         }
     } TREE_LOOP_END;
+    queue_lock_release();
 }
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to