search for: rootrecord

Displaying 2 results from an estimated 2 matches for "rootrecord".

Did you mean: rootrecords
2006 Mar 14
0
[LLVMdev] Re: Garbage collection questions
...--------------------------===** * FIXME: This should be in a code-generator specific library, but for now this * will work for all code generators. */ typedef struct GCRoot { void **RootPtr; void *Meta; } GCRoot; typedef struct GCRoots { struct GCRoots *Next; unsigned NumRoots; GCRoot RootRecords[]; } GCRoots; GCRoots *llvm_gc_root_chain; void llvm_cg_walk_gcroots(void (*FP)(void **Root, void *Meta)) { GCRoots *R = llvm_gc_root_chain; for (; R; R = R->Next) { unsigned i, e; for (i = 0, e = R->NumRoots; i != e; ++i) FP(R->RootRecords[i].RootPtr, R->RootRecords...
2006 Mar 14
3
[LLVMdev] Re: Garbage collection questions
Again, sorry for the delay. :( On Thu, 9 Mar 2006, Sandro Magi wrote: > I've written a reference-counting garbage collector for LLVM, but I'm > still unclear on a few things. Cool! > The following piece of code that appears on > http://llvm.cs.uiuc.edu/docs/GarbageCollection.html is unclear: > > ;; As the pointer goes out of scope, store a null value into > ;;