diff --git a/pkg/test_runner/lib/src/compiler_configuration.dart b/pkg/test_runner/lib/src/compiler_configuration.dart index 595dc6b9b8c..6ea866c300f 100644 --- a/pkg/test_runner/lib/src/compiler_configuration.dart +++ b/pkg/test_runner/lib/src/compiler_configuration.dart @@ -1085,8 +1085,7 @@ class SpecParserCompilerConfiguration extends CompilerConfiguration { } abstract class VMKernelCompilerMixin { - static final noCausalAsyncStacksRegExp = - RegExp('--no[_-]causal[_-]async[_-]stacks'); + static final causalAsyncStacksRegExp = RegExp('--causal[_-]async[_-]stacks'); TestConfiguration get _configuration; @@ -1117,7 +1116,7 @@ abstract class VMKernelCompilerMixin { var isProductMode = _configuration.configuration.mode == Mode.product; - var causalAsyncStacks = !arguments.any(noCausalAsyncStacksRegExp.hasMatch); + var causalAsyncStacks = arguments.any(causalAsyncStacksRegExp.hasMatch); var args = [ _isAot ? '--aot' : '--no-aot', diff --git a/runtime/vm/BUILD.gn b/runtime/vm/BUILD.gn index def74e403c3..714de1ba9af 100644 --- a/runtime/vm/BUILD.gn +++ b/runtime/vm/BUILD.gn @@ -180,7 +180,7 @@ template("gen_vm_platform") { "$root_out_dir/vm_outline" + output_postfix + ".dill", ] args = [ "dart:core" ] - allow_causal_async_stacks = !is_product_flag + allow_causal_async_stacks = false args += [ "-Ddart.vm.product=$is_product_flag", "-Ddart.developer.causal_async_stacks=$allow_causal_async_stacks", diff --git a/runtime/vm/flag_list.h b/runtime/vm/flag_list.h index 51e4a3ff667..5e022399315 100644 --- a/runtime/vm/flag_list.h +++ b/runtime/vm/flag_list.h @@ -55,8 +55,8 @@ constexpr bool kDartUseBackgroundCompilation = true; #define VM_GLOBAL_FLAG_LIST(P, R, C, D) \ P(dwarf_stack_traces_mode, bool, false, \ "Use --[no-]dwarf-stack-traces instead.") \ - P(causal_async_stacks, bool, !USING_PRODUCT, "Improved async stacks") \ - P(lazy_async_stacks, bool, false, "Reconstruct async stacks from listeners") \ + P(causal_async_stacks, bool, false, "Improved async stacks") \ + P(lazy_async_stacks, bool, true, "Reconstruct async stacks from listeners") \ P(lazy_dispatchers, bool, true, "Generate dispatchers lazily") \ P(use_bare_instructions, bool, true, "Enable bare instructions mode.") \ R(dedup_instructions, true, bool, false, \