forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit162aa47
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 parent1b4f1c6 commit162aa47
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
| 236 | + | |
| 237 | + | |
236 | 238 |
| |
237 | 239 |
| |
238 | 240 |
| |
|
0 commit comments
Comments
(0)