这是indexloc提供的服务,不要输入任何密码
Skip to content

Pass -Ddart.developer.causal_async_stacks=true to frontend_server invocations. #42354

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

Merged
merged 4 commits into from
Oct 10, 2019
Merged

Pass -Ddart.developer.causal_async_stacks=true to frontend_server invocations. #42354

merged 4 commits into from
Oct 10, 2019

Conversation

rmacnak-google
Copy link
Contributor

Bytecode generation will otherwise omit prologue code, causing --causal-async-stacks passed to the VM to behave inconsistently.

…ocations.

Bytecode generation will otherwise omit prologue code, causing --causal-async-stacks passed to the VM to behave inconsistently.
@fluttergithubbot
Copy link
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Oct 9, 2019
Copy link
Contributor

@alexmarkov alexmarkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM w/nits.

Do we have any tests for this code which should be adjusted?

@@ -286,6 +286,7 @@ class KernelCompiler {
sdkRoot,
'--strong',
'--target=$targetModel',
'-Ddart.developer.causal_async_stacks=true',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like we need to decide on causal-async-stacks somewhere up in the call chain, not in the compiler itself. Consider passing a bool argument here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this as a parameter to KernelCompiler/ResidentCompiler, but still always using a default value of true since Flutter has (as-yet) no mode that runs with them off.

@@ -569,6 +570,7 @@ class ResidentCompiler {
'--incremental',
'--strong',
'--target=$_targetModel',
'-Ddart.developer.causal_async_stacks=true',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto - consider adding a bool argument to ResidentCompiler.

@alexmarkov
Copy link
Contributor

This should be probably consistent with VM options (flutter/engine#13004) as well as gen_snapshot arguments.

/cc @jason-simmons

@jason-simmons
Copy link
Member

@mehmetf (related to #39511)

@codecov
Copy link

codecov bot commented Oct 9, 2019

Codecov Report

Merging #42354 into master will increase coverage by 0.94%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #42354      +/-   ##
==========================================
+ Coverage   59.12%   60.06%   +0.94%     
==========================================
  Files         194      194              
  Lines       18989    18991       +2     
==========================================
+ Hits        11227    11407     +180     
+ Misses       7762     7584     -178
Flag Coverage Δ
#flutter_tool 60.06% <100%> (+0.94%) ⬆️
Impacted Files Coverage Δ
packages/flutter_tools/lib/src/codegen.dart 5.55% <ø> (ø) ⬆️
packages/flutter_tools/lib/src/compile.dart 78.81% <100%> (+0.14%) ⬆️
packages/flutter_tools/lib/src/version.dart 91.9% <0%> (-1.43%) ⬇️
packages/flutter_tools/lib/src/cache.dart 45.96% <0%> (-0.68%) ⬇️
packages/flutter_tools/lib/src/vmservice.dart 40.9% <0%> (-0.67%) ⬇️
packages/flutter_tools/lib/src/device.dart 61.76% <0%> (+0.58%) ⬆️
packages/flutter_tools/lib/src/template.dart 95.23% <0%> (+1.58%) ⬆️
packages/flutter_tools/lib/src/bundle.dart 81.52% <0%> (+32.6%) ⬆️
...s/flutter_tools/lib/src/tester/flutter_tester.dart 71.87% <0%> (+38.54%) ⬆️
packages/flutter_tools/lib/src/desktop.dart 88% <0%> (+40%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 440753b...48af680. Read the comment docs.

@rmacnak-google rmacnak-google merged commit 2a40c2d into flutter:master Oct 10, 2019
@rmacnak-google rmacnak-google deleted the causal-async-stacks branch October 15, 2019 17:51
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
…ocations. (flutter#42354)

Bytecode generation will otherwise omit prologue code, causing --causal-async-stacks passed to the VM to behave inconsistently.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants