search for: gc_collect

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

Did you mean: ccollect
2011 Feb 21
2
[LLVMdev] A working garbage collector - finally :)
...ags.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 = toSpace.begin; // Trace static roots and runtime stack GCRuntimeSupport.traceStack(TRACE_ACTION); GCRuntimeSupport.traceStaticRoots(TRACE_ACTION); // Trace all remaining l...