20,741
edits
m (→Pool storage) |
|||
| Line 306: | Line 306: | ||
= garbageCollect() = | = garbageCollect() = | ||
This is the function that does the mark/sweep part using mark() to 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 | ||
| Line 364: | Line 366: | ||
* 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 = | = Marking = | ||