forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4f4d734
committed
Fix leak of LLVM "fatal-on-oom" section counter.
llvm_release_context() called llvm_enter_fatal_on_oom(), but was missingthe corresponding llvm_leave_fatal_on_oom() call. As a result, if JIT wasused at all, we were almost always in the "fatal-on-oom" state.It only makes a difference if you use an extension written in C++, andrun out of memory in a C++ 'new' call. In that case, you would get aPostgreSQL FATAL error, instead of the default behavior of throwing aC++ exception.Back-patch to all supported versions.Reviewed-by: Daniel GustafssonDiscussion:https://www.postgresql.org/message-id/54b78cca-bc84-dad8-4a7e-5b56f764fab5@iki.fi1 parent0885390 commit4f4d734
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
221 | 221 |
| |
222 | 222 |
| |
223 | 223 |
| |
| 224 | + | |
| 225 | + | |
224 | 226 |
| |
225 | 227 |
| |
226 | 228 |
| |
|
0 commit comments
Comments
(0)