20,741
edits
| Line 264: | Line 264: | ||
* void naiGCMarkHash(naRef h); | * void naiGCMarkHash(naRef h); | ||
= The pool manager = | |||
All high level type allocators (naNewString, naNewVector, naNewHash etc) make use of the naNew() call introduced earlier. | All high level type allocators (naNewString, naNewVector, naNewHash etc) make use of the naNew() call introduced earlier. | ||
naNew() doesn't directly allocate new memory from the heap, but instead use the naGC_get() helper which manages memory from the global pools (i.e. preallocated memory for each type). | naNew() doesn't directly allocate new memory from the heap, but instead use the naGC_get() helper which manages memory from the global pools (i.e. preallocated memory for each type). | ||