Commit b84fbabb authored by parcs's avatar parcs
Browse files

Initialize gc_thread.mut_spin to the 'acquired' state

parent 986250e4
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment