How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 83: Line 83:


The interesting part is the naGC_get() function which isn't directly mapped to naAlloc() or malloc(), but instead manages the Nasal memory pools.
The interesting part is the naGC_get() function which isn't directly mapped to naAlloc() or malloc(), but instead manages the Nasal memory pools.
For each native Nasal data type, there are separate memory pools in globals->[n]. The index (n) is one of T_VEC, T_HASH, T_FUNC etc.
For each native Nasal data type (scalars, vectors, hashes, funcs etc) , there are separate memory pools in globals->[n]. The index (n) is one of T_VEC, T_HASH, T_FUNC etc.


== Nasal memory pools ==
== Nasal memory pools ==

Navigation menu