aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2012-11-19 18:00:47 +0100
committerRickard Green <[email protected]>2012-11-19 18:00:47 +0100
commit835404bd9a65b679addb3edf8554a6e2ea77dda4 (patch)
tree13d8ee655c687c1e7d589ce77dfb6643c7cbbea7
parent55d931d2fab86da2003ffc22c67bc7f5872be63a (diff)
downloadotp-835404bd9a65b679addb3edf8554a6e2ea77dda4.tar.gz
otp-835404bd9a65b679addb3edf8554a6e2ea77dda4.tar.bz2
otp-835404bd9a65b679addb3edf8554a6e2ea77dda4.zip
Fix bad assert
-rw-r--r--erts/emulator/beam/erl_port_task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_port_task.c b/erts/emulator/beam/erl_port_task.c
index 2c26e1fd45..b6bc59a1c3 100644
--- a/erts/emulator/beam/erl_port_task.c
+++ b/erts/emulator/beam/erl_port_task.c
@@ -541,7 +541,8 @@ erts_port_task_schedule(Eterm id,
#endif
}
- ASSERT(!enq_port || !(runq->flags & ERTS_RUNQ_FLG_SUSPENDED));
+ ASSERT(!enq_port
+ || !(ERTS_RUNQ_FLGS_GET_NOB(runq) & ERTS_RUNQ_FLG_SUSPENDED));
if (!pp->sched.taskq)
pp->sched.taskq = port_taskq_init(port_taskq_alloc(), pp);