Skip to content

Commit f71d160

Browse files
committed
fixup! erts: Fix race between setup_bif_timer and suspending process
1 parent 62c2883 commit f71d160

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

erts/emulator/beam/erl_hl_timer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,7 @@ setup_bif_timer(Process *c_p, int twheel, ErtsMonotonicTime timeout_pos,
18421842
}
18431843
else {
18441844
if (proc) {
1845+
tmr->type.head.receiver.proc = proc;
18451846
create_paused_bif_timer(tmr, proc, esdp);
18461847
erts_proc_unlock(proc, ERTS_PROC_LOCK_BTM);
18471848
erts_proc_dec_refc(proc);

0 commit comments

Comments
 (0)