Commit 2ae2727
src: improve checked uv loop close output
Addon developers may run into this when not closing libuv handles
inside Workers.
Previously, output may have included unhelpful statements such as
`uv loop at ... has 0 active handles`, which may sound like
everything’s supposed to be fine actually.
So, instead of printing the active handle count, print the total
handle count and mark active handles individually.
Also, fix the test for this to work properly and make sure that
parsing finishes properly.
PR-URL: #30814
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent dc1bc15 commit 2ae2727Copy full SHA for 2ae2727
File tree
Expand file treeCollapse file tree
2 files changed
+24
-14
lines changedOpen diff view settings
Filter options
- src
- test/abort
Expand file treeCollapse file tree
2 files changed
+24
-14
lines changedOpen diff view settings
Collapse file
+9-4Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
292 | 292 | |
293 | 293 | |
294 | 294 | |
| 295 | + |
295 | 296 | |
296 | 297 | |
297 | | - |
| 298 | + |
298 | 299 | |
299 | | - |
300 | | - |
| 300 | + |
301 | 301 | |
302 | 302 | |
303 | 303 | |
304 | 304 | |
305 | 305 | |
| 306 | + |
306 | 307 | |
307 | | - |
| 308 | + |
| 309 | + |
308 | 310 | |
309 | 311 | |
310 | 312 | |
| ||
328 | 330 | |
329 | 331 | |
330 | 332 | |
| 333 | + |
| 334 | + |
| 335 | + |
331 | 336 | |
332 | 337 | |
333 | 338 | |
|
Collapse file
test/abort/test-addon-uv-handle-leak.js
Copy file name to clipboardExpand all lines: test/abort/test-addon-uv-handle-leak.js+15-10Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | | - |
51 | | - |
| 50 | + |
| 51 | + |
52 | 52 | |
53 | 53 | |
54 | 54 | |
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
| 61 | + |
61 | 62 | |
62 | 63 | |
63 | 64 | |
| ||
89 | 90 | |
90 | 91 | |
91 | 92 | |
92 | | - |
| 93 | + |
93 | 94 | |
94 | 95 | |
95 | 96 | |
96 | | - |
97 | | - |
| 97 | + |
| 98 | + |
98 | 99 | |
99 | 100 | |
100 | | - |
| 101 | + |
101 | 102 | |
102 | 103 | |
103 | 104 | |
| ||
109 | 110 | |
110 | 111 | |
111 | 112 | |
112 | | - |
| 113 | + |
113 | 114 | |
114 | | - |
115 | | - |
116 | 115 | |
117 | | - |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
118 | 121 | |
119 | 122 | |
120 | 123 | |
121 | 124 | |
122 | 125 | |
| 126 | + |
| 127 | + |
123 | 128 | |
0 commit comments