bootstrap: use different scripts to setup different configurations by joyeecheung · Pull Request #30862 · nodejs/node

@nodejs-github-bot added the lib / src

Issues and PRs related to general changes in the lib or src directory.

label

Dec 9, 2019

@joyeecheung

This patch splits the handling of `isMainThread` and
`ownsProcessState` from conditionals in
`lib/internal/bootstrap/node.js` into different scripts under
`lib/internal/bootstrap/switches/`, and call them accordingly
from C++ after `node.js` is run.

This:

- Creates a common denominator of the main thread and the worker
  thread bootstrap that can be snapshotted and shared by
  both.
- Makes it possible to override the configurations on-the-fly.

@joyeecheung

legendecas

legendecas

joyeecheung added a commit that referenced this pull request

Dec 20, 2019
This patch splits the handling of `isMainThread` and
`ownsProcessState` from conditionals in
`lib/internal/bootstrap/node.js` into different scripts under
`lib/internal/bootstrap/switches/`, and call them accordingly
from C++ after `node.js` is run.

This:

- Creates a common denominator of the main thread and the worker
  thread bootstrap that can be snapshotted and shared by
  both.
- Makes it possible to override the configurations on-the-fly.

PR-URL: #30862
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>

BridgeAR pushed a commit that referenced this pull request

Jan 3, 2020
This patch splits the handling of `isMainThread` and
`ownsProcessState` from conditionals in
`lib/internal/bootstrap/node.js` into different scripts under
`lib/internal/bootstrap/switches/`, and call them accordingly
from C++ after `node.js` is run.

This:

- Creates a common denominator of the main thread and the worker
  thread bootstrap that can be snapshotted and shared by
  both.
- Makes it possible to override the configurations on-the-fly.

PR-URL: #30862
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>

targos pushed a commit that referenced this pull request

Jan 14, 2020
This patch splits the handling of `isMainThread` and
`ownsProcessState` from conditionals in
`lib/internal/bootstrap/node.js` into different scripts under
`lib/internal/bootstrap/switches/`, and call them accordingly
from C++ after `node.js` is run.

This:

- Creates a common denominator of the main thread and the worker
  thread bootstrap that can be snapshotted and shared by
  both.
- Makes it possible to override the configurations on-the-fly.

PR-URL: #30862
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>

BethGriggs pushed a commit that referenced this pull request

Feb 6, 2020
This patch splits the handling of `isMainThread` and
`ownsProcessState` from conditionals in
`lib/internal/bootstrap/node.js` into different scripts under
`lib/internal/bootstrap/switches/`, and call them accordingly
from C++ after `node.js` is run.

This:

- Creates a common denominator of the main thread and the worker
  thread bootstrap that can be snapshotted and shared by
  both.
- Makes it possible to override the configurations on-the-fly.

PR-URL: #30862
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>

codebytere added a commit to electron/electron that referenced this pull request

Feb 12, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 12, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 15, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 15, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 18, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 18, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 21, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 21, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 21, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 21, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 24, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 24, 2020

codebytere added a commit to electron/electron that referenced this pull request

Feb 24, 2020