search for: pointer_flag

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

2006 Mar 14
0
[LLVMdev] Re: Garbage collection questions
...e refcount, * and when the ref count is 0, it is linked into a list of scheduled deletions. */ typedef struct Header { unsigned flags; /* book-keeping info */ union { unsigned count; struct Header *next; } field; } BlockHeader; /* flag indicates the union contains a pointer */ #define POINTER_FLAG 0x01 #define IS_POINTER(header) (header->flags & POINTER_FLAG) #define SET_POINTER(header) header->flags |= POINTER_FLAG; #define CLEAR_POINTER(header) header->flags &= ~POINTER_FLAG; #define LINK(root, block) \ block->field.next = root;\ root = block; #define UNLINK(entry, pr...
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 > ;;