How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 337: Line 337:
* dead blocks are freed and new memory is allocated in line: 66 https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line66
* dead blocks are freed and new memory is allocated in line: 66 https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line66
* the needGC flag is set to 0
* the needGC flag is set to 0
= Marking =
All reachable objects are marked, so that unreachable objects can be collected and freed.
TOOD: https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line223
<syntaxhighlight lang="C">
</syntaxhighlight>




Navigation menu