20,741
edits
m (→reap()) |
|||
| 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> | |||