Commit c23016cf authored by Simon Marlow's avatar Simon Marlow
Browse files

need locking around use of weak_ptr_list in mkWeak#

parent 5fb52815
......@@ -321,8 +321,10 @@ stg_mkWeakzh
StgWeak_finalizer(w) = R3;
StgWeak_cfinalizer(w) = stg_NO_FINALIZER_closure;
StgWeak_link(w) = W_[weak_ptr_list];
W_[weak_ptr_list] = w;
IF_DEBUG(weak, foreign "C" debugBelch(stg_weak_msg,w) []);
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