From 62007afc41ea3ed970793382b06cec205deba979 Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Sat, 10 Dec 2011 17:01:52 +0100 Subject: Fix thread progress debug code for has_reached_wakeup() --- erts/emulator/beam/erl_thr_progress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erts/emulator/beam/erl_thr_progress.c b/erts/emulator/beam/erl_thr_progress.c index 826570b928..b9883b1e79 100644 --- a/erts/emulator/beam/erl_thr_progress.c +++ b/erts/emulator/beam/erl_thr_progress.c @@ -744,7 +744,7 @@ has_reached_wakeup(ErtsThrPrgrVal wakeup) if (limit == ERTS_THR_PRGR_VAL_WAITING) limit = 0; else if (limit < current) /* Wrapped */ - limit + 1; + limit += 1; if (!erts_thr_progress_has_passed__(limit, wakeup)) erl_exit(ERTS_ABORT_EXIT, -- cgit v1.2.3