Commit cf25a5e
src: drain platform tasks before creating startup snapshot
Drain the loop and platform tasks before creating a snapshot. This is
necessary to ensure that the no roots are held by the the platform
tasks, which may reference objects associated with a context. For
example, a WeakRef may schedule an per-isolate platform task as a GC
root, and referencing an object in a context, causing an assertion in
the snapshot creator.
PR-URL: #56403
Refs: #56292
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>1 parent 597a39b commit cf25a5eCopy full SHA for cf25a5e
File tree
Expand file treeCollapse file tree
1 file changed
+14
-10
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+14
-10
lines changedOpen diff view settings
Collapse file
+14-10Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
993 | 993 | |
994 | 994 | |
995 | 995 | |
| 996 | + |
| 997 | + |
| 998 | + |
996 | 999 | |
997 | 1000 | |
998 | | - |
999 | | - |
1000 | 1001 | |
1001 | 1002 | |
1002 | 1003 | |
1003 | 1004 | |
1004 | 1005 | |
1005 | 1006 | |
| 1007 | + |
1006 | 1008 | |
1007 | | - |
1008 | | - |
1009 | | - |
1010 | | - |
1011 | | - |
1012 | | - |
1013 | | - |
1014 | | - |
| 1009 | + |
| 1010 | + |
| 1011 | + |
| 1012 | + |
| 1013 | + |
| 1014 | + |
| 1015 | + |
| 1016 | + |
| 1017 | + |
| 1018 | + |
1015 | 1019 | |
1016 | 1020 | |
1017 | 1021 | |
|
0 commit comments