Commit 9fab228
src: fix cb scope bugs involved in termination
Be more aggresive to clean up the async id stack,
and ensure the cleanup when terminating.
Calling SetIdle() when terminating is not harmless.
When node terminates due to an unhandled exception,
v8 preseves the vm state, which is JS and notifies
node through PerIsolateMessageListener(). If node
calls SetIdle() later, v8 complains because it
requires the vm state to either be EXTERNEL or IDLE
when embedder calling SetIdle().
PR-URL: #45596
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent cc74821 commit 9fab228Copy full SHA for 9fab228
File tree
Expand file treeCollapse file tree
4 files changed
+40
-3
lines changedOpen diff view settings
Filter options
- src/api
- test/parallel
Expand file treeCollapse file tree
4 files changed
+40
-3
lines changedOpen diff view settings
Collapse file
+7-3Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
97 | 97 | |
98 | 98 | |
99 | 99 | |
100 | | - |
101 | | - |
| 100 | + |
| 101 | + |
102 | 102 | |
103 | | - |
104 | 103 | |
105 | 104 | |
106 | 105 | |
| ||
109 | 108 | |
110 | 109 | |
111 | 110 | |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
112 | 116 | |
113 | 117 | |
114 | 118 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
881 | 881 | |
882 | 882 | |
883 | 883 | |
| 884 | + |
884 | 885 | |
885 | 886 | |
886 | 887 | |
|
Collapse file
test/parallel/test-unhandled-exception-with-worker-inuse.js
Copy file name to clipboard+32Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
Collapse file
…al/test-worker-http2-stream-terminate.js …el/test-worker-http2-stream-terminate.jstest/sequential/test-worker-http2-stream-terminate.js renamed to test/parallel/test-worker-http2-stream-terminate.js test/sequential/test-worker-http2-stream-terminate.js renamed to test/parallel/test-worker-http2-stream-terminate.js
Copy file name to clipboardFile renamed without changes.
0 commit comments