Skip to content

Commit 9c8ca42

Browse files
[lldb][swift] Increase number of Rows inspected when unwinding async functions
We were overly conservatives in our initial estimations: if callee saved registers are used, they are usually spilled first, increasing the number of rows in the prologue.
1 parent c1d18ab commit 9c8ca42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,8 +2584,8 @@ GetFrameSetupInfo(UnwindPlan &unwind_plan, RegisterContext &regctx) {
25842584
if (!fp_unwind_regdomain)
25852585
return fp_unwind_regdomain.takeError();
25862586

2587-
// Look at the first few (4) rows of the plan and store FP's location.
2588-
const int upper_bound = std::min(4, unwind_plan.GetRowCount());
2587+
// Look at the first few (8) rows of the plan and store FP's location.
2588+
const int upper_bound = std::min(8, unwind_plan.GetRowCount());
25892589
llvm::SmallVector<AbstractRegisterLocation, 4> fp_locs;
25902590
for (int row_idx = 0; row_idx < upper_bound; row_idx++) {
25912591
RowSP row = unwind_plan.GetRowAtIndex(row_idx);

0 commit comments

Comments
 (0)