Re: Missing llvm_leave_fatal_on_oom() call
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2023-07-04T16:33:10Z
Lists: pgsql-hackers
> On 21 Feb 2023, at 15:50, Heikki Linnakangas <hlinnaka@iki.fi> wrote: > > llvm_release_context() calls llvm_enter_fatal_on_oom(), but it never calls llvm_leave_fatal_on_oom(). Isn't that a clear leak? Not sure how much of a leak it is since IIUC LLVM just stores a function pointer to our error handler, but I can't see a reason not clean it up here. The attached fix LGTM and passes make check with jit_above_cost set to zero. -- Daniel Gustafsson
Commits
-
Fix leak of LLVM "fatal-on-oom" section counter.
- dc0b5841746c 16.0 landed
- 2316ff1ae5a8 11.21 landed
- 162aa47c31a0 12.16 landed
- 59c2a6fe9b65 13.12 landed
- bfb493dbae7e 14.9 landed
- fa96a74a0f76 15.4 landed
- 4f4d73466d71 17.0 landed