Skip to content

Commit e90967f

Browse files
Clement Skaucommit-bot@chromium.org
authored andcommitted
[SDK] Makes --lazy_async_stack default.
Bug: dart-lang/sdk#42062 Change-Id: If22ed42b363e2d75d0be5cc14aef9e909b8ff2e6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149288 Commit-Queue: Clement Skau <[email protected]> Reviewed-by: Martin Kustermann <[email protected]>
1 parent 6101e46 commit e90967f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

pkg/test_runner/lib/src/compiler_configuration.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,8 +1085,7 @@ class SpecParserCompilerConfiguration extends CompilerConfiguration {
10851085
}
10861086

10871087
abstract class VMKernelCompilerMixin {
1088-
static final noCausalAsyncStacksRegExp =
1089-
RegExp('--no[_-]causal[_-]async[_-]stacks');
1088+
static final causalAsyncStacksRegExp = RegExp('--causal[_-]async[_-]stacks');
10901089

10911090
TestConfiguration get _configuration;
10921091

@@ -1117,7 +1116,7 @@ abstract class VMKernelCompilerMixin {
11171116

11181117
var isProductMode = _configuration.configuration.mode == Mode.product;
11191118

1120-
var causalAsyncStacks = !arguments.any(noCausalAsyncStacksRegExp.hasMatch);
1119+
var causalAsyncStacks = arguments.any(causalAsyncStacksRegExp.hasMatch);
11211120

11221121
var args = [
11231122
_isAot ? '--aot' : '--no-aot',

runtime/vm/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ template("gen_vm_platform") {
180180
"$root_out_dir/vm_outline" + output_postfix + ".dill",
181181
]
182182
args = [ "dart:core" ]
183-
allow_causal_async_stacks = !is_product_flag
183+
allow_causal_async_stacks = false
184184
args += [
185185
"-Ddart.vm.product=$is_product_flag",
186186
"-Ddart.developer.causal_async_stacks=$allow_causal_async_stacks",

runtime/vm/flag_list.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ constexpr bool kDartUseBackgroundCompilation = true;
5555
#define VM_GLOBAL_FLAG_LIST(P, R, C, D) \
5656
P(dwarf_stack_traces_mode, bool, false, \
5757
"Use --[no-]dwarf-stack-traces instead.") \
58-
P(causal_async_stacks, bool, !USING_PRODUCT, "Improved async stacks") \
59-
P(lazy_async_stacks, bool, false, "Reconstruct async stacks from listeners") \
58+
P(causal_async_stacks, bool, false, "Improved async stacks") \
59+
P(lazy_async_stacks, bool, true, "Reconstruct async stacks from listeners") \
6060
P(lazy_dispatchers, bool, true, "Generate dispatchers lazily") \
6161
P(use_bare_instructions, bool, true, "Enable bare instructions mode.") \
6262
R(dedup_instructions, true, bool, false, \

0 commit comments

Comments
 (0)