Commit 9e9e48b
committed
src: use uv_async_t for WeakRefs
Schedule a task on the main event loop, similar to what the HTML
spec recommends for browsers.
Alternative to #30198
PR-URL: #30616
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 94e4cbd commit 9e9e48bCopy full SHA for 9e9e48b
File tree
Expand file treeCollapse file tree
5 files changed
+59
-6
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
5 files changed
+59
-6
lines changedOpen diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1118 | 1118 | |
1119 | 1119 | |
1120 | 1120 | |
| 1121 | + |
1121 | 1122 | |
1122 | 1123 | |
1123 | 1124 | |
|
Collapse file
+26-5Lines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
460 | 460 | |
461 | 461 | |
462 | 462 | |
| 463 | + |
| 464 | + |
| 465 | + |
| 466 | + |
| 467 | + |
| 468 | + |
| 469 | + |
| 470 | + |
463 | 471 | |
464 | 472 | |
| 473 | + |
465 | 474 | |
466 | 475 | |
467 | 476 | |
| ||
524 | 533 | |
525 | 534 | |
526 | 535 | |
| 536 | + |
| 537 | + |
| 538 | + |
| 539 | + |
527 | 540 | |
528 | 541 | |
529 | 542 | |
| ||
1040 | 1053 | |
1041 | 1054 | |
1042 | 1055 | |
1043 | | - |
| 1056 | + |
1044 | 1057 | |
| 1058 | + |
1045 | 1059 | |
1046 | | - |
| 1060 | + |
| 1061 | + |
| 1062 | + |
| 1063 | + |
| 1064 | + |
| 1065 | + |
1047 | 1066 | |
1048 | 1067 | |
1049 | 1068 | |
1050 | 1069 | |
1051 | | - |
| 1070 | + |
| 1071 | + |
| 1072 | + |
| 1073 | + |
| 1074 | + |
1052 | 1075 | |
1053 | 1076 | |
1054 | | - |
1055 | | - |
1056 | 1077 | |
1057 | 1078 | |
1058 | 1079 | |
|
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1128 | 1128 | |
1129 | 1129 | |
1130 | 1130 | |
1131 | | - |
| 1131 | + |
| 1132 | + |
1132 | 1133 | |
1133 | 1134 | |
1134 | 1135 | |
| ||
1270 | 1271 | |
1271 | 1272 | |
1272 | 1273 | |
| 1274 | + |
1273 | 1275 | |
1274 | 1276 | |
1275 | 1277 | |
|
Collapse file
test/parallel/test-finalization-group-error.js
Copy file name to clipboardExpand all lines: test/parallel/test-finalization-group-error.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
21 | 25 | |
22 | 26 | |
23 | 27 | |
Collapse file
test/parallel/test-finalization-group-regular-gc.js
Copy file name to clipboard+25Lines changed: 25 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 | + |
0 commit comments