Displaying 1 result from an estimated 1 matches for "tracepos".
Did you mean:
tracelog
2011 Feb 21
2
[LLVMdev] A working garbage collector - finally :)
...{
// Swap the spaces.
toSpace, fromSpace = fromSpace, toSpace;
toSpace.pos = toSpace.begin;
// Trace static roots and runtime stack
GCRuntimeSupport.traceStack(TRACE_ACTION);
GCRuntimeSupport.traceStaticRoots(TRACE_ACTION);
// Trace all remaining live objects.
var tracePos = toSpace.begin;
while (tracePos < toSpace.pos) {
let header:Address[ObjectHeader] = Memory.bitCast(tracePos);
let obj:Object = Memory.bitCast[Address[ubyte], Object](tracePos);
let length = header.gcstate;
TRACE_ACTION.traceObject(obj);
tracePos += length;...