aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_thr_progress.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-12-10 17:03:09 +0100
committerRickard Green <[email protected]>2011-12-10 17:03:09 +0100
commitd293aac2f300874881ee4148024c63dc644a4104 (patch)
tree074ebd8d77579de80de03bf9cd029077b7aed747 /erts/emulator/beam/erl_thr_progress.c
parent8d03b919f06db216a271bc90cf90d9c697a5a5c8 (diff)
parent62007afc41ea3ed970793382b06cec205deba979 (diff)
downloadotp-d293aac2f300874881ee4148024c63dc644a4104.tar.gz
otp-d293aac2f300874881ee4148024c63dc644a4104.tar.bz2
otp-d293aac2f300874881ee4148024c63dc644a4104.zip
Merge branch 'rickard/alloc-opt/OTP-7775'
* rickard/alloc-opt/OTP-7775: Fix thread progress debug code for has_reached_wakeup()
Diffstat (limited to 'erts/emulator/beam/erl_thr_progress.c')
-rw-r--r--erts/emulator/beam/erl_thr_progress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_thr_progress.c b/erts/emulator/beam/erl_thr_progress.c
index 02f36fc75e..75f8209c3b 100644
--- a/erts/emulator/beam/erl_thr_progress.c
+++ b/erts/emulator/beam/erl_thr_progress.c
@@ -915,7 +915,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,