Commit c43ebc8
committed
crypto: avoid TLSWrap callbacks during GC
TLSWrap destructors can run from V8 weak callbacks. Avoid invoking
queued write callbacks from that path because StreamReq::Done mutates
JS-visible objects and may allocate on the V8 heap during weak callback
processing.
Refs: #62393
Made-with: Cursor1 parent 34adeeb commit c43ebc8
2 files changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
442 | 444 | | |
443 | 445 | | |
444 | 446 | | |
| |||
1307 | 1309 | | |
1308 | 1310 | | |
1309 | 1311 | | |
1310 | | - | |
| 1312 | + | |
1311 | 1313 | | |
1312 | 1314 | | |
1313 | 1315 | | |
1314 | | - | |
1315 | | - | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
1316 | 1319 | | |
1317 | | - | |
1318 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
1319 | 1327 | | |
1320 | 1328 | | |
1321 | 1329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
0 commit comments