-
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
Static variables are reused in local isolates with --fast-startup #27558
Comments
BUG=#27558 R=floitsch@google.com Review URL: https://codereview.chromium.org/2402393002 .
This is not an isolate problem. Changed the title accordingly. Example: import 'dart:isolate';
final fin = () { print("initializing fin"); return true; }();
int global = 0;
f(arg) {
print("calling lazy global");
var x = fin;
print("called");
print("global: $global");
}
main() {
f(null);
global++;
Isolate.spawn(f, null);
} Run it with and without I have a vague memory of this being on purpose since it simplified the compiler and the output. If I remember correctly we agreed that isolate tests would need to be run with content_shell. /cc @sigmundch : do you remember if that's what we agreed on? |
I honestly can't recall whether we discussed where to run isolate tests, but running them only in content_shell seems like a fair requirement. In general - if we only to support isolates when webworkers are available, should we change the isolate library to fail proactively in that case & delete the local isolates logic? |
@floitschG - what do you think about failing proactively and deleting the local-isolates logic? Regarding this original bug, I'll mark it as "wont fix". FYI - after some fixes to custom-elements + js-interop, the test is now passing in safari. The test is only failing on d8 and jsshell. |
The co19 test co19/LibTest/isolate/Isolate/spawn_A04_t04 is failing on a very diverse collection of platforms. The test should be investigated to see if it is pointing out a real failure in the async library.
It is failing if: $compiler == dart2js && ($runtime == jsshell || ($fast_startup && ($runtime == safari || ($minified && $runtime == d8))))
The text was updated successfully, but these errors were encountered: