[LLVMdev] JIT and garbage collection
Reid Spencer
rspencer at reidspencer.com
Sun Aug 6 11:58:48 PDT 2006
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.
Reid.
On Sun, 2006-08-06 at 14:30 -0400, Hendrik Boom wrote:
> If I recall correctly, the garbage collector interface consists mostly of
> some fuctions that one calls during execution to notify the collector
> about a GC root. There's one othr thing that's needed if you do JIT
> compilation: you have to garbage-collect the generated code. This means
> that the collector must be able to find where the pointers are in the
> generated code together with metadata.
>
> Is there any support for this?
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list