[LLVMdev] Lifetime of ExecutionEngine?

Paul J. Lucas paul at lucasmail.org
Fri Oct 26 16:56:24 PDT 2012


On Oct 26, 2012, at 12:59 PM, "Kaylor, Andrew" <andrew.kaylor at intel.com> wrote:

> In either case, deleting the ExecutionEngine should result in the JITMemoryManager being deleted and therefore also the memory in which the JITed functions are contained.
> 
> I think it's entirely possible that you just aren't seeing a problem because that memory hasn't been recycled yet.  It's a problem waiting to happen.

I probably should have mentioned that I'm JIT'ing the function, executing it, deleting the ExecutionEngine, and (the part I left out) never executing the JIT'd function again.  It's only ever executed once.  Given that, I would think it would be OK to delete the ExecutionEngine -- yes?

- Paul





More information about the llvm-dev mailing list