search for: gc_fe_get_object_size

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

2004 Oct 29
0
[LLVMdev] Getting started with GC
...language front-end could easily insert calls to this function in the initializer. 2. A way of getting the size of an object. Initially you can use a header word on the object, but eventually, it would be nice if the front-end runtime library would provide a function, say "unsigned gc_fe_get_object_size(void *object)", which could be called by the GC implementation to get this information. With the approach above, if the object was a non-array, it would just get the object size field from the GC info (using several pointer dereferences from 'object'. If it's an array...
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