Displaying 1 result from an estimated 1 matches for "fromspac".
Did you mean:
fromspace
2011 Feb 21
2
[LLVMdev] A working garbage collector - finally :)
...the style is not the normal Tart style due to the
need to deal with low-level objects such as addresses and pointers:
private final class TraceActionImpl : TraceAction {
protected def tracePointer(ptrAddr:Address[Object]) {
let addr:Address[ubyte] = Memory.bitCast(ptrAddr[0]);
if fromSpace.contains(addr) {
let header:Address[ObjectHeader] = Memory.bitCast(addr);
// A gcstate of 0 means that 'header' is the head of a statically
// allocated object instance, in which case we need not do
// anything since it will be traced as a static root....