Commit 04bcdf6
src: use a typed array internally for process._exiting
This would prevent manual writes to the _exiting JS property on the
process object by passing the data directly via a typed array for
performance.
This change partially addresses this TODO:
https://github.com/nodejs/node/blob/3d575a4f1bd197c3ce669758a2a3c763462a883a/src/api/hooks.cc#L68-L71
Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: #43883
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>1 parent c3fa82f commit 04bcdf6Copy full SHA for 04bcdf6
Expand file treeCollapse file tree
7 files changed
+68
-17
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+19Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
60 | 60 | |
61 | 61 | |
62 | 62 | |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
63 | 67 | |
64 | 68 | |
65 | 69 | |
66 | 70 | |
67 | 71 | |
68 | 72 | |
69 | 73 | |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
70 | 89 | |
71 | 90 | |
72 | 91 | |
|
Collapse file
+5-8Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
76 | 73 | |
77 | 74 | |
78 | 75 | |
|
Collapse file
+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
371 | 371 | |
372 | 372 | |
373 | 373 | |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
374 | 382 | |
375 | 383 | |
376 | 384 | |
|
Collapse file
+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
672 | 672 | |
673 | 673 | |
674 | 674 | |
| 675 | + |
675 | 676 | |
676 | 677 | |
677 | 678 | |
| ||
778 | 779 | |
779 | 780 | |
780 | 781 | |
| 782 | + |
| 783 | + |
| 784 | + |
781 | 785 | |
782 | 786 | |
783 | 787 | |
| ||
1669 | 1673 | |
1670 | 1674 | |
1671 | 1675 | |
| 1676 | + |
1672 | 1677 | |
1673 | 1678 | |
1674 | 1679 | |
| ||
1716 | 1721 | |
1717 | 1722 | |
1718 | 1723 | |
| 1724 | + |
1719 | 1725 | |
1720 | 1726 | |
1721 | 1727 | |
| ||
1759 | 1765 | |
1760 | 1766 | |
1761 | 1767 | |
| 1768 | + |
1762 | 1769 | |
1763 | 1770 | |
1764 | 1771 | |
| ||
1979 | 1986 | |
1980 | 1987 | |
1981 | 1988 | |
| 1989 | + |
1982 | 1990 | |
1983 | 1991 | |
1984 | 1992 | |
|
Collapse file
+18-9Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
164 | 164 | |
165 | 165 | |
166 | 166 | |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
176 | 177 | |
177 | 178 | |
178 | 179 | |
| ||
973 | 974 | |
974 | 975 | |
975 | 976 | |
| 977 | + |
976 | 978 | |
977 | 979 | |
978 | 980 | |
| ||
1173 | 1175 | |
1174 | 1176 | |
1175 | 1177 | |
| 1178 | + |
| 1179 | + |
| 1180 | + |
| 1181 | + |
| 1182 | + |
1176 | 1183 | |
1177 | 1184 | |
1178 | 1185 | |
| ||
1513 | 1520 | |
1514 | 1521 | |
1515 | 1522 | |
| 1523 | + |
| 1524 | + |
1516 | 1525 | |
1517 | 1526 | |
1518 | 1527 | |
|
Collapse file
+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
91 | 91 | |
92 | 92 | |
93 | 93 | |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
94 | 103 | |
95 | 104 | |
96 | 105 | |
|
Collapse file
typings/internalBinding/util.d.ts
Copy file name to clipboardExpand all lines: typings/internalBinding/util.d.ts+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
| 20 | + |
20 | 21 | |
21 | 22 | |
22 | 23 | |
|
0 commit comments