search for: refcnt_dec

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

Did you mean: refcount_dec
2006 Mar 14
0
[LLVMdev] Re: Garbage collection questions
...uring the current collection, and * thus must wait for the next cycle to be collected. */ static BlockHeader *deferred; void defer(void **Root, void *Meta) __attribute__((always_inline)); void reset() __attribute__((always_inline)); void refcnt_inc(void *obj) __attribute__((always_inline)); void refcnt_dec(void *obj) __attribute__((always_inline)); /* if the object pointed to by the Root is scheduled for collection, * defer it to the next collection cycle (this will continue until * root falls out of scope). */ void defer(void **Root, void *Meta) { BlockHeader *head= (BlockHeader *)*Root; if...
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 > ;;