Displaying 1 result from an estimated 1 matches for "trace_act".
Did you mean:
trace_all
2011 Feb 21
2
[LLVMdev] A working garbage collector - finally :)
...[ubyte] = toSpace.alloc(size);
Memory.arrayCopy(newAddr, addr, size);
header.newLocation = ptrAddr[0] = Memory.bitCast(newAddr);
header.gcstate = uint(GCFlags.RELOCATED);
}
}
}
}
}
/** Static instance of the trace action. */
let TRACE_ACTION = TraceActionImpl();
The collect function simply invokes the trace action on the stack roots, the
static roots, and the surviving members in the to-space:
@LinkageName("GC_collect") def collect() {
// Swap the spaces.
toSpace, fromSpace = fromSpace, toSpace;
toSpace.pos...