forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4e86887
committed
jit: Do not try to shut down LLVM state in case of LLVM triggered errors.
If an allocation failed within LLVM it is not safe to call back into LLVM asLLVM is not generally safe against exceptions / stack-unwinding. Thus errorswhile in LLVM code are promoted to FATAL. However llvm_shutdown() did callback into LLVM even in such cases, while llvm_release_context() was carefulnot to do so.We cannot generally skip shutting down LLVM, as that can break profiling. Butit's OK to do so if there was an error from within LLVM.Reported-By: Jelte Fennema <Jelte.Fennema@microsoft.com>Author: Andres Freund <andres@anarazel.de>Author: Justin Pryzby <pryzby@telsasoft.com>Discussion:https://postgr.es/m/AM5PR83MB0178C52CCA0A8DEA0207DC14F7FF9@AM5PR83MB0178.EURPRD83.prod.outlook.comBackpatch: 11-, where jit was introduced1 parent0d0bbee commit4e86887
File tree
3 files changed
+27
-2
lines changed- src
- backend/jit/llvm
- include/jit
3 files changed
+27
-2
lines changedLines changed: 16 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
175 |
| - | |
176 |
| - | |
177 | 175 |
| |
178 | 176 |
| |
179 | 177 |
| |
| |||
182 | 180 |
| |
183 | 181 |
| |
184 | 182 |
| |
| 183 | + | |
| 184 | + | |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
| |||
885 | 885 |
| |
886 | 886 |
| |
887 | 887 |
| |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
888 | 902 |
| |
889 | 903 |
| |
890 | 904 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
86 | 96 |
| |
87 | 97 |
| |
88 | 98 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
| 87 | + | |
87 | 88 |
| |
88 | 89 |
| |
89 | 90 |
| |
|
0 commit comments
Comments
(0)