search for: gcruntimesupport

Displaying 1 result from an estimated 1 matches for "gcruntimesupport".

2011 Feb 21
2
[LLVMdev] A working garbage collector - finally :)
...race 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 = 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...