Skip to content

Commit 9e9951a

Browse files
alexmarkovCommit Queue
authored andcommitted
[vm,dyn_modules] Fix --stacktrace-every for the interpreted functions
TEST=ci Change-Id: I78d2b1e6a64c6543cba9462a964e25945077d570 Cq-Include-Trybots: luci.dart.try:vm-aot-dyn-linux-debug-x64-try,vm-aot-dyn-linux-product-x64-try,vm-dyn-linux-debug-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442243 Commit-Queue: Alexander Markov <[email protected]> Reviewed-by: Tess Strickland <[email protected]>
1 parent 7d64093 commit 9e9951a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

runtime/vm/runtime_entry.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3489,9 +3489,12 @@ static void HandleStackOverflowTestCases(Thread* thread) {
34893489
int num_vars = 0;
34903490
// Variable locations and number are unknown when precompiling.
34913491
#if !defined(DART_PRECOMPILED_RUNTIME)
3492-
if (!frame->function().ForceOptimize()) {
3493-
// Ensure that we have unoptimized code.
3494-
frame->function().EnsureHasCompiledUnoptimizedCode();
3492+
const auto& function = frame->function();
3493+
if (!function.ForceOptimize()) {
3494+
if (!function.is_declared_in_bytecode()) {
3495+
// Ensure that we have unoptimized code.
3496+
function.EnsureHasCompiledUnoptimizedCode();
3497+
}
34953498
num_vars = frame->NumLocalVariables();
34963499
}
34973500
#endif

0 commit comments

Comments
 (0)