Commit 63662b9
committed
gh-141786 Fix missing parent executor during trace
An executor's trace can point to another executor, forming a graph
of traces / executors. Sometimes it is possible while recording a
trace that the parent executor is freed / invalidated halfway. This
leads to the bug described in the issue gh-141786, which if left
unfixed could cause a memory leak.
This patch checks for the validity of the parent executor as well
as allowing JIT from the cold executor. While the cold executor is
not linked, it is the executor responsible for creating side traces
and we still want to JIT from it.1 parent 53ec7c8 commit 63662b9
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1408 | 1408 | | |
1409 | 1409 | | |
1410 | 1410 | | |
1411 | | - | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
1412 | 1414 | | |
1413 | 1415 | | |
1414 | 1416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
143 | 151 | | |
144 | 152 | | |
145 | 153 | | |
| |||
185 | 193 | | |
186 | 194 | | |
187 | 195 | | |
188 | | - | |
189 | 196 | | |
190 | 197 | | |
191 | 198 | | |
| |||
0 commit comments