Commit 4213f89
src: release context frame in AsyncWrap::EmitDestroy
Release the async context frame in AsyncWrap::EmitDestroy to allow
gc to collect it.
This is in special relevant for reused resources like HTTPParser
otherwise they might keep ALS stores alive.
PR-URL: #61995
Fixes: #61882
Refs: #48528
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>1 parent 7ab885b commit 4213f89Copy full SHA for 4213f89
2 files changed
+46-3Lines changed: 46 additions & 3 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+17-3Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
| 28 | + |
| 29 | + |
| 30 | + |
28 | 31 | |
29 | 32 | |
30 | 33 | |
| ||
333 | 336 | |
334 | 337 | |
335 | 338 | |
336 | | - |
337 | | - |
338 | | - |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
339 | 345 | |
340 | 346 | |
341 | 347 | |
| ||
659 | 665 | |
660 | 666 | |
661 | 667 | |
| 668 | + |
| 669 | + |
| 670 | + |
| 671 | + |
| 672 | + |
| 673 | + |
| 674 | + |
| 675 | + |
662 | 676 | |
663 | 677 | |
664 | 678 | |
|
Collapse file
test/parallel/test-async-local-storage-http-parser-leak.js
Copy file name to clipboard+29Lines changed: 29 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 | + |
0 commit comments