How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 357: Line 357:
= garbageCollect() =
= garbageCollect() =


This is the function that does the mark/sweep part using mark() to revursively mark reachable objects, and reap() to collect unreachable objects.
This is the function that does the mark/sweep part using mark() to recursively mark reachable objects, and reap() to collect unreachable objects.


https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line35
https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line35

Navigation menu