forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3acc4ac
committed
LLVMJIT: Release JIT context after running ExprContext shutdown callbacks.
Due to inlining it previously was possible that an ExprContext'sshutdown callback pointed to a JITed function. As the JIT contextpreviously was shut down before the shutdown callbacks were called,that could lead to segfaults. Fix the ordering.Reported-By: Dmitry DolgovAuthor: Andres FreundDiscussion:https://postgr.es/m/CA+q6zcWO7CeAJtHBxgcHn_hj+PenM=tvG0RJ93X1uEJ86+76Ug@mail.gmail.comBackpatch: 11-, where JIT compilation was added1 parentbcafa26 commit3acc4ac
2 files changed
+13
-10
lines changedLines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 | 50 |
| |
52 | 51 |
| |
53 | 52 |
| |
| |||
498 | 497 |
| |
499 | 498 |
| |
500 | 499 |
| |
501 |
| - | |
502 |
| - | |
503 |
| - | |
504 |
| - | |
505 | 500 |
| |
506 | 501 |
| |
507 | 502 |
| |
|
Lines changed: 13 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| 48 | + | |
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
| |||
174 | 175 |
| |
175 | 176 |
| |
176 | 177 |
| |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
182 | 183 |
| |
183 | 184 |
| |
184 | 185 |
| |
| |||
204 | 205 |
| |
205 | 206 |
| |
206 | 207 |
| |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
207 | 215 |
| |
208 | 216 |
| |
209 | 217 |
| |
|
0 commit comments
Comments
(0)