Commit edafab7
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 295db19 commit edafab7Copy full SHA for edafab7
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 |
|---|---|---|
| ||
973 | 973 | |
974 | 974 | |
975 | 975 | |
| 976 | + |
| 977 | + |
| 978 | + |
976 | 979 | |
977 | 980 | |
978 | | - |
979 | | - |
980 | 981 | |
981 | 982 | |
982 | 983 | |
983 | 984 | |
984 | 985 | |
985 | 986 | |
| 987 | + |
986 | 988 | |
987 | | - |
988 | | - |
989 | | - |
990 | | - |
991 | | - |
992 | | - |
993 | | - |
994 | | - |
| 989 | + |
| 990 | + |
| 991 | + |
| 992 | + |
| 993 | + |
| 994 | + |
| 995 | + |
| 996 | + |
| 997 | + |
| 998 | + |
995 | 999 | |
996 | 1000 | |
997 | 1001 | |
|
0 commit comments