Commit 1b3b686
committed
[lldb] Fix HeapCFA comparison to be symmetric
A swift async frame A is younger than frame B if the async ctx of B can
be reached from the async ctx of A. This is implemented today.
But we fail to check the opposite:
A swift async frame A is _older_ than frame B if the async ctx of A can
be reached from the async ctx of B.
Because we lacked the opposite check, we were falling back to "vanilla"
CFA comparison, and were just being lucky that the vast majority of
cases are only interested in the "Younger" case.1 parent 34622b4 commit 1b3b686
File tree
2 files changed
+32
-0
lines changed- lldb
- source/Target
- unittests/StackID
2 files changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
0 commit comments