diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-02-01 04:03:25 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-02-10 16:33:57 +0800 |
commit | 84000835e2be2e5b1936d774ed4c4a0106c966a4 (patch) | |
tree | f71f94c92976cd301df62aa0052cb1b3f7a68fa0 /lib/internal/main/run_main_module.js | |
parent | 70f4f08a9f0902056ac47271f9d3a761fcee4715 (diff) | |
download | android-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.tar.gz android-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.tar.bz2 android-node-v8-84000835e2be2e5b1936d774ed4c4a0106c966a4.zip |
process: group main thread execution preparation code
This patch groups the preparation of main thread execution into
`prepareMainThreadExecution()` and removes the cluster IPC
setup in worker thread bootstrap since clusters do not use
worker threads for its implementation and it's unlikely to change.
PR-URL: https://github.com/nodejs/node/pull/26000
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Diffstat (limited to 'lib/internal/main/run_main_module.js')
-rw-r--r-- | lib/internal/main/run_main_module.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/internal/main/run_main_module.js b/lib/internal/main/run_main_module.js index abc41fc202..97a4e33be2 100644 --- a/lib/internal/main/run_main_module.js +++ b/lib/internal/main/run_main_module.js @@ -1,18 +1,10 @@ 'use strict'; const { - initializeDeprecations, - initializeClusterIPC, - initializePolicy, - initializeESMLoader, - loadPreloadModules + prepareMainThreadExecution } = require('internal/bootstrap/pre_execution'); -initializeDeprecations(); -initializeClusterIPC(); -initializePolicy(); -initializeESMLoader(); -loadPreloadModules(); +prepareMainThreadExecution(); // Expand process.argv[1] into a full path. const path = require('path'); |