[llvm-commits] [patch] add gcroot attribute, test
Eric Christopher
echristo at apple.com
Thu Sep 20 19:46:07 PDT 2007
Here are a pair of patches to add an attribute to automatically gcroot
things based on type. It currently works for pointers to structures
only because a) that's all I need, and b) I think that's all that
makes sense really. I could remove the restriction if someone can come
up with a good use case for other types. Note that we're also zeroing
out automatic variables as well so if we do a collection before
they're initialized we don't end up following garbage.
Tested on x86-darwin.
-eric
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcroot.diff.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070920/7ab7ca89/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: llvm.diff.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070920/7ab7ca89/attachment-0001.txt>
More information about the llvm-commits
mailing list