Displaying 2 results from an estimated 2 matches for "llvm_gc_alloc_slow".
2006 Mar 14
0
[LLVMdev] Re: Garbage collection questions
...T_POINTER(header);
}
}
}
/* llvm_gc_initialize - do nothing
*/
void llvm_gc_initialize(unsigned InitialHeapSize) {
}
/* We always want to inline the fast path, but never want to inline the
* slow path.
*/
void *llvm_gc_allocate(unsigned Size) __attribute__((always_inline));
static void* llvm_gc_alloc_slow(unsigned Size) __attribute__((noinline));
void *llvm_gc_allocate(unsigned Size) {
unsigned Actual = Size + sizeof(BlockHeader);
if (scan != NULL) {
llvm_gc_collect(); /* run a bounded collection before every allocation */
}
BlockHeader *space = (BlockHeader *)malloc(Actual);
if (spac...
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
> ;;