[LLVMdev] JIT : Does it cache the compiled code of executed functions upon runFunction(..)?

Jeffrey Yasskin jyasskin at google.com
Fri Mar 19 08:48:25 PDT 2010


On Fri, Mar 19, 2010 at 7:57 AM, Reid Kleckner <rnk at mit.edu> wrote:
> So far as I know this entry point is not cached and lives as long as
> the JIT, so if you use runFunction repeatedly you will be generating
> many snippets of machine code and leaking memory.
>
> The leak could be fixed by freeing the stub before returning its return value.

We no longer leak memory as of
http://llvm.org/viewvc/llvm-project?view=rev&revision=96037.



More information about the llvm-dev mailing list