How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 170: Line 170:
}
}
</syntaxhighlight>
</syntaxhighlight>
As can be seen, "elemsz"  just stores the size of each type-specific structure, so that it can be used for new allocations.


The size of a memory pool is determined using poolsize(): https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line186
The size of a memory pool is determined using poolsize(): https://gitorious.org/fg/simgear/blobs/next/simgear/nasal/gc.c#line186

Navigation menu