Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit e78e405

Browse files
author
Clement Skau
authored
Enable lazy-async-stacks by-default in all modes (Take 4) (#21802)
1 parent 2ef0f42 commit e78e405

File tree

10 files changed

+14
-12
lines changed

10 files changed

+14
-12
lines changed

runtime/dart_vm.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ static const char* kDartLanguageArgs[] = {
5959
// clang-format off
6060
"--enable_mirrors=false",
6161
"--background_compilation",
62-
"--causal_async_stacks",
62+
"--no-causal_async_stacks",
63+
"--lazy_async_stacks",
6364
// clang-format on
6465
};
6566

shell/common/shell_unittests.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ TEST_F(ShellTest, AllowedDartVMFlag) {
316316
std::vector<const char*> flags = {
317317
"--enable-isolate-groups",
318318
"--no-enable-isolate-groups",
319+
"--lazy_async_stacks",
320+
"--no-causal_async_stacks",
319321
};
320322
#if !FLUTTER_RELEASE
321323
flags.push_back("--max_profile_depth 1");

shell/platform/fuchsia/dart_runner/dart_runner.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ namespace {
3636

3737
const char* kDartVMArgs[] = {
3838
// clang-format off
39-
// TODO(FL-117): Re-enable causal async stack traces when this issue is
40-
// addressed.
4139
"--no_causal_async_stacks",
40+
"--lazy_async_stacks",
4241

4342
"--systrace_timeline",
4443
"--timeline_streams=Compiler,Dart,Debugger,Embedder,GC,Isolate,VM",

shell/platform/fuchsia/dart_runner/embedder/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ template("create_aot_snapshot") {
4747

4848
args = [
4949
"--no_causal_async_stacks",
50+
"--lazy_async_stacks",
5051
"--deterministic",
5152
"--snapshot_kind=vm-aot-assembly",
5253
"--assembly=" + rebase_path(snapshot_assembly),

shell/platform/fuchsia/dart_runner/kernel/BUILD.gn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ template("create_kernel_core_snapshot") {
6868
tool = gen_snapshot_to_use
6969

7070
args = [
71-
# TODO(FL-117): Re-enable causal async stack traces when this issue is
72-
# addressed.
7371
"--no_causal_async_stacks",
72+
"--lazy_async_stacks",
7473
"--enable_mirrors=false",
7574
"--deterministic",
7675
"--snapshot_kind=core-jit",

shell/platform/fuchsia/dart_runner/vmservice/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ template("aot_snapshot") {
5858

5959
args = [
6060
"--no_causal_async_stacks",
61+
"--lazy_async_stacks",
6162
"--deterministic",
6263
"--snapshot_kind=app-aot-elf",
6364
"--elf=" + rebase_path(snapshot_path),

shell/platform/fuchsia/flutter/component.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,7 @@ Application::Application(
402402
settings_.task_observer_remove = std::bind(
403403
&CurrentMessageLoopRemoveAfterTaskObserver, std::placeholders::_1);
404404

405-
// TODO(FL-117): Re-enable causal async stack traces when this issue is
406-
// addressed.
407-
settings_.dart_flags = {"--no_causal_async_stacks"};
405+
settings_.dart_flags = {"--no_causal_async_stacks", "--lazy_async_stacks"};
408406

409407
// Don't collect CPU samples from Dart VM C++ code.
410408
settings_.dart_flags.push_back("--no_profile_vm");

shell/platform/fuchsia/flutter/kernel/BUILD.gn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ template("core_snapshot") {
7272
tool = gen_snapshot_to_use
7373

7474
args = [
75-
# TODO(FL-117): Re-enable causal async stack traces when this issue is
76-
# addressed.
7775
"--no_causal_async_stacks",
76+
"--lazy_async_stacks",
7877
"--enable_mirrors=false",
7978
"--deterministic",
8079
"--snapshot_kind=core-jit",

testing/scenario_app/compile_ios_jit.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ echo "Compiling JIT Snapshot..."
7474

7575
"$DEVICE_TOOLS/gen_snapshot" --deterministic \
7676
--enable-asserts \
77-
--causal_async_stacks \
77+
--no-causal_async_stacks \
78+
--lazy_async_stacks \
7879
--isolate_snapshot_instructions="$OUTDIR/isolate_snapshot_instr" \
7980
--snapshot_kind=app-jit \
8081
--load_vm_snapshot_data="$DEVICE_TOOLS/../gen/flutter/lib/snapshot/vm_isolate_snapshot.bin" \

testing/testing.gni

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ template("dart_snapshot_aot") {
129129
outputs = [ elf_object ]
130130

131131
args = [
132-
"--causal_async_stacks",
132+
"--no-causal_async_stacks",
133+
"--lazy_async_stacks",
133134
"--deterministic",
134135
"--snapshot_kind=app-aot-elf",
135136
"--elf=" + rebase_path(elf_object),

0 commit comments

Comments
 (0)