[LLVMdev] Re: JIT and garbage collection

Hendrik Boom hendrik at topoi.pooq.com
Sun Aug 6 12:47:16 PDT 2006


On Sun, 06 Aug 2006 12:04:31 -0700, Chris Lattner wrote:

> On Sun, 6 Aug 2006, Reid Spencer wrote:
>> Yes, the JIT implementation was recently improved to add support for
>> this. There's nothing you need to do (or emit). The JIT implementation
>> will automatically collect memory that is not being used. See the
>> JITMemoryManager in lib/ExecutionEngine/JIT/JITEmitter.cpp for details.
> 
> The JIT doesn't automatically do this.  I don't track where function 
> pointers are and autoreclaim.  The client must specifically request that 
> specific functions code be deallocated.

Would it be a huge change for it to do this?  Besides issues of whether
the garbage collector itself contains garbage-collected code, of course.

-- hendrik





More information about the llvm-dev mailing list