diff options
author | Sverker Eriksson <[email protected]> | 2017-06-28 20:02:30 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-10-02 10:34:27 +0200 |
commit | 5e1a70e5eb0bfc39add1acdb60d5c49021edebcd (patch) | |
tree | ecb11511d133253dc35299c4709e469cea360424 /erts/emulator/beam/erl_process.c | |
parent | af8380c319c01cfbf6262c3356462823b9e88c1c (diff) | |
download | otp-5e1a70e5eb0bfc39add1acdb60d5c49021edebcd.tar.gz otp-5e1a70e5eb0bfc39add1acdb60d5c49021edebcd.tar.bz2 otp-5e1a70e5eb0bfc39add1acdb60d5c49021edebcd.zip |
erts: Optimize port_task quick allocator
for non scheduler threads by using ERTS_THR_PREF_QUICK_ALLOC_IMPL.
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r-- | erts/emulator/beam/erl_process.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 624b907fb6..66dcd85af6 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -3129,6 +3129,7 @@ aux_thread(void *unused) } #endif + erts_port_task_pre_alloc_init_thread(); ssi->event = erts_tse_fetch(); erts_msacc_init_thread("aux", 1, 1); @@ -3185,9 +3186,6 @@ aux_thread(void *unused) return NULL; } -static void suspend_scheduler(ErtsSchedulerData *esdp); - - static void scheduler_wait(int *fcalls, ErtsSchedulerData *esdp, ErtsRunQueue *rq) { @@ -8341,6 +8339,7 @@ sched_thread_func(void *vesdp) Uint no = esdp->no; erts_tse_t *tse; + erts_port_task_pre_alloc_init_thread(); erts_sched_init_time_sup(esdp); if (no == 1) |