| commit | e505ab1fd26be173f143484917a22a1e851e09f8 | [log] [tgz] |
|---|---|---|
| author | Alexander Markov <alexmarkov@google.com> | Thu Jun 09 14:52:33 2022 +0000 |
| committer | Commit Bot <commit-bot@chromium.org> | Thu Jun 09 14:52:33 2022 +0000 |
| tree | ff86a71fd1a20a329f091d19cc409f888f7563b0 | |
| parent | 3e9290df4f511a2d7c297aecee5b3c55c798139d [diff] |
[vm] Fix stack trace collection while registering async callbacks in the Zone During 'await', when registering 'then' and 'error' callbacks in a custom Zone, the stack trace should be collected synchronously as there are no awaiters yet, but the suspended function and its callers are still on the stack. This change corrects the new implementation of async to collect these stack traces synchronously. Class StackZoneSpecification from package:stack_trace relies on the stack traces during callback registration in order to provide more detailed chain of async stack traces via Chain.capture. Without this change package:stack_trace captured truncated Chains. Issue: https://github.com/dart-lang/sdk/issues/48378 Issue: https://github.com/flutter/flutter/issues/105340 TEST=vm/dart/causal_stacks/zone_callback_stack_traces_test Change-Id: Iee348aa5c9abb4126f6c5d8215a6dc2cee57e124 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247620 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@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.