process,worker: ensure code after exit() effectless#45620
Merged
nodejs-github-bot merged 5 commits intonodejs:mainfrom Dec 25, 2022
Merged
process,worker: ensure code after exit() effectless#45620nodejs-github-bot merged 5 commits intonodejs:mainfrom
nodejs-github-bot merged 5 commits intonodejs:mainfrom
Conversation
ywave620
commented
Nov 25, 2022
| const workerData = new Int32Array(new SharedArrayBuffer(4)); | ||
| const w = new Worker(` | ||
| const { createHook } = require('async_hooks'); | ||
| const { workerData } = require('worker_threads'); |
Contributor
Author
There was a problem hiding this comment.
I believe the original author forgot to add this import. And this is why the strictEqual below paased, because adding to the workerData raises an reference exception.
addaleax
approved these changes
Nov 25, 2022
anonrig
approved these changes
Nov 25, 2022
Collaborator
21 tasks
Collaborator
Commit Queue failed- Loading data for nodejs/node/pull/45620 ✔ Done loading data for nodejs/node/pull/45620 ----------------------------------- PR info ------------------------------------ Title process,worker: ensure code followed by exit() effectless (#45620) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch ywave620:ensure-exit -> nodejs:main Labels process, author ready, needs-ci Commits 1 - process,worker: ensure code followed by exit() effectless Committers 1 - ywave620 PR-URL: https://github.com/nodejs/node/pull/45620 Reviewed-By: Anna Henningsen Reviewed-By: Yagiz Nizipli ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/45620 Reviewed-By: Anna Henningsen Reviewed-By: Yagiz Nizipli -------------------------------------------------------------------------------- ℹ This PR was created on Fri, 25 Nov 2022 07:56:35 GMT ✔ Approvals: 2 ✔ - Anna Henningsen (@addaleax): https://github.com/nodejs/node/pull/45620#pullrequestreview-1194537461 ✔ - Yagiz Nizipli (@anonrig): https://github.com/nodejs/node/pull/45620#pullrequestreview-1194617601 ✖ Last GitHub CI failed ℹ Last Full PR CI on 2022-11-26T10:52:29Z: https://ci.nodejs.org/job/node-test-pull-request/48195/ - Querying data for job/node-test-pull-request/48195/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/3557316810 |
Collaborator
jasnell
approved these changes
Nov 27, 2022
cjihrig
approved these changes
Nov 27, 2022
Collaborator
20 tasks
Cope with the delay(to the next function call) of v8::Isolate::TerminateExecution()
c7f350d to
5bf6a3c
Compare
JungMinu
approved these changes
Nov 28, 2022
Contributor
Author
|
spurious failure |
This was referenced Nov 29, 2022
9 tasks
ignore exception that indicaties a termination in napi call
f3b73e2 to
0c91220
Compare
Contributor
Author
Fix. PTAL, especially change in |
Collaborator
This was referenced Dec 11, 2022
ywave620
commented
Dec 12, 2022
|
|
||
| // i.e. whether v8 exited or is about to exit | ||
| inline bool terminatedOrTerminating() { | ||
| return this->isolate->IsExecutionTerminating() || !can_call_into_js(); |
Contributor
Author
There was a problem hiding this comment.
Note that if this->isolate->IsExecutionTerminating() is true, we can not call can_call_into_js(), because that will extract the node::Environment by calling v8 API on this->isolate , which will again hit the assertion:
# Fatal error in ../deps/v8/src/api/api.cc, line 8635
# Debug check failed: !i_isolate->is_execution_terminating().
Collaborator
13 tasks
aduh95
approved these changes
Dec 25, 2022
Collaborator
|
Landed in 8438f3b |
targos
pushed a commit
that referenced
this pull request
Jan 1, 2023
Cope with the delay(to the next function call) of v8::Isolate::TerminateExecution() PR-URL: #45620 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Merged
RafaelGSS
pushed a commit
that referenced
this pull request
Jan 4, 2023
Cope with the delay(to the next function call) of v8::Isolate::TerminateExecution() PR-URL: #45620 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
RafaelGSS
pushed a commit
that referenced
this pull request
Jan 5, 2023
Cope with the delay(to the next function call) of v8::Isolate::TerminateExecution() PR-URL: #45620 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
juanarbol
pushed a commit
that referenced
this pull request
Jan 26, 2023
Cope with the delay(to the next function call) of v8::Isolate::TerminateExecution() PR-URL: #45620 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Merged
juanarbol
pushed a commit
that referenced
this pull request
Jan 31, 2023
Cope with the delay(to the next function call) of v8::Isolate::TerminateExecution() PR-URL: #45620 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cope with the delay(to the next function call) of v8::Isolate::TerminateExecution()