Commit a53b2ac
committed
contextify: tie lifetimes of context & sandbox
When the previous set of changes (bfff07b) it was possible to have the
context get garbage collected while sandbox was still live. We need to
tie the lifetime of the context to the lifetime of the sandbox.
Fixes: #5768
PR-URL: #5786
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>1 parent be97db9 commit a53b2acCopy full SHA for a53b2ac
File tree
Expand file treeCollapse file tree
3 files changed
+27
-5
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
3 files changed
+27
-5
lines changedOpen diff view settings
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
50 | 50 | |
51 | 51 | |
52 | 52 | |
53 | | - |
| 53 | + |
| 54 | + |
54 | 55 | |
55 | 56 | |
56 | 57 | |
|
Collapse file
+16-4Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
209 | 209 | |
210 | 210 | |
211 | 211 | |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
212 | 219 | |
| 220 | + |
| 221 | + |
| 222 | + |
213 | 223 | |
214 | 224 | |
215 | 225 | |
| ||
270 | 280 | |
271 | 281 | |
272 | 282 | |
273 | | - |
| 283 | + |
274 | 284 | |
275 | 285 | |
276 | 286 | |
| ||
285 | 295 | |
286 | 296 | |
287 | 297 | |
288 | | - |
| 298 | + |
289 | 299 | |
290 | 300 | |
291 | 301 | |
| ||
300 | 310 | |
301 | 311 | |
302 | 312 | |
303 | | - |
| 313 | + |
| 314 | + |
304 | 315 | |
305 | 316 | |
306 | 317 | |
| ||
315 | 326 | |
316 | 327 | |
317 | 328 | |
318 | | - |
| 329 | + |
| 330 | + |
319 | 331 | |
320 | 332 | |
321 | 333 | |
|
Collapse file
test/parallel/test-vm-create-and-run-in-context.js
Copy file name to clipboardExpand all lines: test/parallel/test-vm-create-and-run-in-context.js+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
| 2 | + |
2 | 3 | |
3 | 4 | |
4 | 5 | |
| ||
18 | 19 | |
19 | 20 | |
20 | 21 | |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
0 commit comments