-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spawnFunction needs to use a script snapshot of the parent isolate when starting #6610
Comments
Added Area-VM label. |
Removed Priority-Medium label. |
Issue #19228 has been merged into this issue. cc @dgrove. |
Nathan and I believe that this is slowing down the spawning of transformer isolates in pub. Can this be addressed in the relatively near future? |
Marked this as blocking #23105. |
When this issue was first created we did not have the 'hot reload' feature, I think it is worth discussing the implications of hot-reloading and using the 'Isolate.spawn' API to spawn child isolates
Getting this right in all situations would require having some kind of check pointing and getting all the isolates in the group reloaded with the new modified source. I don't believe it is worth spending engineering cycles trying to implement this corner case. Here is what I propose
|
Opening a new issue #35302 for the hot reload issue per Liam's comment. |
Bug: #6610 Change-Id: Icd6e1c5d6d4b64b611fc58333c051a8a9a50679d Reviewed-on: https://dart-review.googlesource.com/c/85724 Commit-Queue: Liam Appelbe <liama@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
This reverts commit e143a52. Reason for revert: Broke all the reload-kernel bots. Original change's description: > Load isolate from parent's kernel in Isolate.spawn calls. > > Bug: #6610 > Change-Id: Icd6e1c5d6d4b64b611fc58333c051a8a9a50679d > Reviewed-on: https://dart-review.googlesource.com/c/85724 > Commit-Queue: Liam Appelbe <liama@google.com> > Reviewed-by: Vyacheslav Egorov <vegorov@google.com> > Reviewed-by: Ryan Macnak <rmacnak@google.com> TBR=vegorov@google.com,rmacnak@google.com,asiva@google.com,liama@google.com Change-Id: Ie9c305256da9b6478153b99502d0c63b0f43a3e6 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: #6610 Reviewed-on: https://dart-review.googlesource.com/c/86082 Reviewed-by: Liam Appelbe <liama@google.com> Commit-Queue: Liam Appelbe <liama@google.com>
Currently when isolate.spawnFunction is called it reloads
the same script that the parent isolate loaded but we don't
have a way of ensuring that the same versions of the script
got loaded in the child isolate.
Instead of loading scripts the spawnFunction should use
a script snapshot of the parent isolate.
The text was updated successfully, but these errors were encountered: