[LLVMdev] Accurate garbage collection support
spyck at lysator.liu.se
Tue May 25 07:18:03 PDT 2004
This is really nice, it supports my (somewhere-in-the-future) work with
llvm, garbage collection and persistent memories.
Can/Will one garbage collector be used for several different front-end
languages? If so, don't you have to put functionality to traverse objects
in the language implementation, since the internal representation depends
on what language that is compiled. One language's internal representation
for data could for example use a bit to define if a field is a pointer or
an immediate value.
Or does the collector know that it is Java code it's compiling, and
therefore know that it should look for java type-tags on objects?
Otherwise it was a nice document, please say when you've implemented the
trivial copying collector, which might answer my question. :)
On Mon, 24 May 2004, Chris Lattner wrote:
> I recently added initial support for accurate GC to LLVM, as described in
> this document:
> I've started implementing a trivial copying collector as a testcase for
> it, but it is not done yet. All code generators support identification of
> roots on the stack though.
> If you're interested in such things, I would really appreciate feedback on
> the document, especially from front-end authors or garbage collection
> implementor type-of-people.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev