search for: process_pointer

Displaying 10 results from an estimated 10 matches for "process_pointer".

2004 Oct 26
2
[LLVMdev] Getting started with GC
...t;char> > > > const&, char const* const*)+0x2ef)[0x8369619] lli(main+0x26c)[0x82f89b0] /lib/tls/libc.so.6(__libc_start_main+0x108)[0x401307f8] Aborted How should we get this to run? Also the code in runtime/GC/SemiSpace/semispace.c doesn't seem to do anything other than call process_pointer for every gcroot pointer. static void process_pointer(void **Root, void *Meta) { printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root); } Are there any examples of LLVM performing active garbage collection? In the dev archives (http://mail.cs.uiuc.edu/pipermail/llvmdev/...
2004 Aug 18
2
[LLVMdev] process_root.
Hi, This is regarding the backend for garbage collection. My problem might be related to some strange memory fault created by my frontend, but I'll try here to get some feedback. For some strange reason I get segmentation fault in process_pointer in semispace.c (I've implemented a small collector, hopefully :). The fault occurs when I do: printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root); I.e, when I reference Root. My frontend creates llvm assembly with llvm-gcroot in the following manner: ... %r22 = a...
2004 Aug 18
0
[LLVMdev] process_root.
...arding the backend for garbage collection. My problem might be > related to some strange memory fault created by my frontend, but I'll try > here to get some feedback. Okay. I'm not an expert on GC but I'll take a look ... > For some strange reason I get segmentation fault in process_pointer in > semispace.c (I've implemented a small collector, hopefully :). The fault > occurs when I do: > > printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root); > > I.e, when I reference Root. I don't know what "Root" is but possibly the %p...
2004 Aug 18
2
[LLVMdev] process_root.
On Wed, 18 Aug 2004, Reid Spencer wrote: > On Wed, 2004-08-18 at 11:54, Tobias Nurmiranta wrote: > > Okay. I'm not an expert on GC but I'll take a look ... Thanks :) > > > For some strange reason I get segmentation fault in process_pointer in > > semispace.c (I've implemented a small collector, hopefully :). The fault > > occurs when I do: > > > > printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root); > > > > I.e, when I reference Root. > > I don't know what &q...
2004 Oct 27
0
[LLVMdev] Getting started with GC
...857f48d] > [0xffffe420] > How should we get this to run? Sorry about that, patch for this problem here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041025/019891.html > Also the code in runtime/GC/SemiSpace/semispace.c doesn't seem to do > anything other than call process_pointer for every gcroot pointer. > > static void process_pointer(void **Root, void *Meta) { > printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root); > } Correct. The semispace collector hasn't been implemented all of the way. The code generator and runtime interf...
2004 Aug 18
0
[LLVMdev] process_root.
...> > On Wed, 18 Aug 2004, Reid Spencer wrote: > > On Wed, 2004-08-18 at 11:54, Tobias Nurmiranta wrote: > > > > Okay. I'm not an expert on GC but I'll take a look ... > > Thanks :) > > > > > > For some strange reason I get segmentation fault in process_pointer in > > > semispace.c (I've implemented a small collector, hopefully :). The fault > > > occurs when I do: > > > > > > printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root); > > > > > > I.e, when I reference Root. >...
2004 Oct 27
0
[LLVMdev] Getting started with GC
On Wed, 27 Oct 2004, Tom Brown wrote: > On Tue, Oct 26, 2004 at 11:17:00PM -0500, Chris Lattner wrote: > > On Tue, 26 Oct 2004, Tom Brown wrote: > > > $ llvm-as alloc_loop.ll > > > $ lli alloc_loop.bc > > > lli: Globals.cpp:81: llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, const std::string&,
2004 Oct 27
2
[LLVMdev] Getting started with GC
On Tue, Oct 26, 2004 at 11:17:00PM -0500, Chris Lattner wrote: > On Tue, 26 Oct 2004, Tom Brown wrote: > > $ llvm-as alloc_loop.ll > > $ lli alloc_loop.bc > > lli: Globals.cpp:81: llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, const std::string&, llvm::Module*): Assertion `Initializer->getType() == Ty
2004 Oct 28
2
[LLVMdev] Getting started with GC
We have a few questions about the current state of GC. We decided to start (and finish?) our work by finishing SemiSpace. process_pointer is meant to move objects from CurSpace to OtherSpace. How can it find pointers to a moved object? How does it know the size of each object? Assuming we are writing a GC that will only work from llvm assembly our best option seems to be forcing the assembly code to follow a convention that identifie...
2004 Oct 29
0
[LLVMdev] Getting started with GC
On Thu, 28 Oct 2004, Tom Brown wrote: > We have a few questions about the current state of GC. Ok. :) > We decided to start (and finish?) our work by finishing SemiSpace. Sounds good. > process_pointer is meant to move objects from CurSpace to OtherSpace. > How can it find pointers to a moved object? This is entirely up to you, as you're basically implementing the semispace collector in its entirety. See below. > How does it know the size of each object? I'm a big fan of startin...