diff options
author | Zandra Hird <[email protected]> | 2015-04-27 14:10:39 +0200 |
---|---|---|
committer | Zandra Hird <[email protected]> | 2015-04-27 14:21:33 +0200 |
commit | 2abf0bc684360a20dd068668eddd1398a9703bde (patch) | |
tree | 36271deec9fc3ebfa55586cb837c90249803dc7a | |
parent | 6f0a08d85feac7103b573e20d6250ea880c6400f (diff) | |
parent | fe150e807667cf3aa1ecdd865a1885bdc326b0f6 (diff) | |
download | otp-2abf0bc684360a20dd068668eddd1398a9703bde.tar.gz otp-2abf0bc684360a20dd068668eddd1398a9703bde.tar.bz2 otp-2abf0bc684360a20dd068668eddd1398a9703bde.zip |
Merge branch 'vinoski/dirty-sched-wakeup'
OTP-12685
-rw-r--r-- | erts/emulator/beam/erl_process.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 6518314e30..00c7b163c2 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -4956,9 +4956,11 @@ wakeup_other_check(ErtsRunQueue *rq, Uint32 flags) + ERTS_WAKEUP_OTHER_FIXED_INC); if (rq->wakeup_other > wakeup_other.limit) { #ifdef ERTS_DIRTY_SCHEDULERS - if (ERTS_RUNQ_IX_IS_DIRTY(rq->ix) && rq->waiting) - wake_dirty_schedulers(rq, 1); - else + if (ERTS_RUNQ_IX_IS_DIRTY(rq->ix)) { + if (rq->waiting) { + wake_dirty_schedulers(rq, 1); + } + } else #endif { int empty_rqs = |