Displaying 3 results from an estimated 3 matches for "gc_add_root".
Did you mean:
gc_add_roots
2010 Jan 31
1
[LLVMdev] Boehm GC + static variables?
...he boehm gc doesn't already see the globals,
since there's a reference to their memory from the JMM, but maybe it
doesn't scan mmap regions by default.
On Sun, Jan 31, 2010 at 6:12 AM, James Williams <junk at giantblob.com> wrote:
> I've implemented this by adding calls to GC_add_roots(<first global in
> module>,<last global in module>+1) to the llvm.global_ctors before any other
> static initialization code for the module.
>
> This should be safe assuming that:
> - global variables are laid out in memory in the order they appear in their
> module (...
2010 Jan 31
0
[LLVMdev] Boehm GC + static variables?
I've implemented this by adding calls to GC_add_roots(<first global in
module>,<last global in module>+1) to the llvm.global_ctors before any other
static initialization code for the module.
This should be safe assuming that:
- global variables are laid out in memory in the order they appear in their
module (and ideally contiguously with...
2010 Jan 31
2
[LLVMdev] Boehm GC + static variables?
Hi,
I'm running LLVM bitcode generated by my compiler under lli. The bitcode is
linked against Boehm GC (lli -load=/usr/lib/libgc.so).
It looks like Boehm GC isn't scanning global variables and as a result
objects referenced only through globals are being prematurely collected. I
understand that Boehm GC needs to see the data segment containing my global
variables as a root. For native