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