Index: runtime/vm/code_generator.cc |
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc |
index 10b18c3bbbedaef1d9af1d50b8fbc5a690b7642a..de63989ec9f953e6121c4bfaf8ca5e0a55a69f02 100644 |
--- a/runtime/vm/code_generator.cc |
+++ b/runtime/vm/code_generator.cc |
@@ -1631,6 +1631,9 @@ DEFINE_RUNTIME_ENTRY(StackOverflow, 0) { |
frame->VariableAt(v, &var_name, &unused, &unused, &unused, &var_value); |
} |
} |
+ if (FLAG_stress_async_stacks) { |
+ Debugger::CollectAwaiterReturnStackTrace(); |
+ } |
FLAG_stacktrace_every = saved_stacktrace_every; |
} |