From b9e3557a963471661f3b13da37ba758686192aec Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Mon, 10 Dec 2012 14:49:50 +0100 Subject: Fix thread progress management of unmanaged threads --- erts/emulator/beam/erl_thr_progress.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'erts/emulator') diff --git a/erts/emulator/beam/erl_thr_progress.c b/erts/emulator/beam/erl_thr_progress.c index 3b2f95d43b..9678d7e08b 100644 --- a/erts/emulator/beam/erl_thr_progress.c +++ b/erts/emulator/beam/erl_thr_progress.c @@ -475,6 +475,9 @@ erts_thr_progress_init(int no_schedulers, int managed, int unmanaged) intrnl->misc.data.umrefc_ix.waiting = -1; erts_atomic32_init_nob(&intrnl->misc.data.umrefc_ix.current, 0); + erts_atomic_init_nob(&intrnl->umrefc[0].refc, (erts_aint_t) 0); + erts_atomic_init_nob(&intrnl->umrefc[1].refc, (erts_aint_t) 0); + intrnl->thr = (ErtsThrPrgrArray *) ptr; ptr += thr_arr_sz; for (i = 0; i < managed; i++) -- cgit v1.2.3