diff options
author | Rickard Green <[email protected]> | 2014-08-11 10:16:54 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2014-08-11 10:16:54 +0200 |
commit | d61d54541c877d43fd15ac087fca7e094a007bdb (patch) | |
tree | d89f82d631a701c3ccdda0719be634c22c5cb9f7 /erts/emulator/beam | |
parent | fd9c5a608df8608c5508f6c799eb3088b50f7bf6 (diff) | |
parent | 1fed4d803c1eb6363f26585a439cd97390b9af72 (diff) | |
download | otp-d61d54541c877d43fd15ac087fca7e094a007bdb.tar.gz otp-d61d54541c877d43fd15ac087fca7e094a007bdb.tar.bz2 otp-d61d54541c877d43fd15ac087fca7e094a007bdb.zip |
Merge branch 'maint'
* maint:
Fix build of test port program
Update Makefile.src
Add async_ports test
Fix abort of nosuspend-tasks in erts_port_task_schedule()
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_port_task.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_port_task.c b/erts/emulator/beam/erl_port_task.c index 31d9a1e26e..2fc95ed5d8 100644 --- a/erts/emulator/beam/erl_port_task.c +++ b/erts/emulator/beam/erl_port_task.c @@ -798,12 +798,13 @@ schedule_port_task_handle_list_free(ErtsPortTaskHandleList *pthlp) static ERTS_INLINE void abort_nosuspend_task(Port *pp, ErtsPortTaskType type, - ErtsPortTaskTypeData *tdp) + ErtsPortTaskTypeData *tdp, + int bpq_data) { ASSERT(type == ERTS_PORT_TASK_PROC_SIG); - if (!pp->sched.taskq.bpq) + if (!bpq_data) tdp->psig.callback(NULL, ERTS_PORT_SFLG_INVALID, ERTS_PROC2PORT_SIG_ABORT_NOSUSPEND, @@ -1345,7 +1346,7 @@ erts_port_task_abort_nosuspend_tasks(Port *pp) #endif schedule_port_task_handle_list_free(pthlp); - abort_nosuspend_task(pp, type, &td); + abort_nosuspend_task(pp, type, &td, pp->sched.taskq.bpq != NULL); } } @@ -1525,7 +1526,7 @@ abort_nosuspend: erts_port_dec_refc(pp); #endif - abort_nosuspend_task(pp, ptp->type, &ptp->u.alive.td); + abort_nosuspend_task(pp, ptp->type, &ptp->u.alive.td, 0); ASSERT(ns_pthlp); erts_free(ERTS_ALC_T_PT_HNDL_LIST, ns_pthlp); |