commit | d2126a3d5b05889e52d99c1cbf00e96d4eafd017 | [log] [tgz] |
---|---|---|
author | Vyacheslav Egorov <vegorov@google.com> | Wed Apr 20 13:55:59 2022 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 20 13:55:59 2022 +0000 |
tree | dc2227efa54ce9e4690dc4f4ec3bfd5ddbf16cd7 | |
parent | 1320e644d5d6e7053949c3b33c0597e573909e66 [diff] |
[vm] Avoid deadlocks when launching subprocesses Forked process should use _exit() rather than exit() when exiting without exec-ing otherwise it risks to hit an issue (e.g. deadlock) in an atexit handler. Additionally `man fork` states: > After a fork() in a multithreaded program, the child can > safely call only async-signal-safe functions (see > signal-safety(7)) until such time as it calls execve(2). _exit is on the list of async-signal-safe functions, but exit is not. Fixes b/216834909 TEST=runtime/tests/vm/dart{,_2}/regress_b_216834909_test.dart Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-android-release-arm64c-try,vm-kernel-mac-release-x64-try Change-Id: Ia67f23825fc0ee1c1918faf2d4ef3b81033263eb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241608 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Slava Egorov <vegorov@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.