[commit: ghc] master: Initialize gc_thread.mut_spin to the 'acquired' state (b84fbab)

git at git.haskell.org git
Wed Oct 2 17:53:19 UTC 2013


Repository : ssh://git at git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/b84fbabb0cad88a5b1ae62a53e04075383bc11f4/ghc

>---------------------------------------------------------------

commit b84fbabb0cad88a5b1ae62a53e04075383bc11f4
Author: Patrick Palka <patrick at parcs.ath.cx>
Date:   Sun Sep 29 17:11:51 2013 -0400

    Initialize gc_thread.mut_spin to the 'acquired' state


>---------------------------------------------------------------

b84fbabb0cad88a5b1ae62a53e04075383bc11f4
 rts/sm/GC.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/rts/sm/GC.c b/rts/sm/GC.c
index 26a1764..b5d6f03 100644
--- a/rts/sm/GC.c
+++ b/rts/sm/GC.c
@@ -801,6 +801,7 @@ new_gc_thread (nat n, gc_thread *t)
     initSpinLock(&t->gc_spin);
     initSpinLock(&t->mut_spin);
     ACQUIRE_SPIN_LOCK(&t->gc_spin);
+    ACQUIRE_SPIN_LOCK(&t->mut_spin);
     t->wakeup = GC_THREAD_INACTIVE;  // starts true, so we can wait for the
                           // thread to start up, see wakeup_gc_threads
 #endif




More information about the ghc-commits mailing list