#include <muse_opcodes.h>
Collaboration diagram for muse_heap:

Data Fields | |
| int | size_cells |
| The heap size given in number of cells. | |
| muse_cell_data * | cells |
| Pointer to the heap of cells. | |
| unsigned char * | marks |
| An array of marks that is used to keep track of cell references during garbage collection. | |
| muse_cell | free_cells |
| A reference to the first cell in the free list. | |
| int | free_cell_count |
| The number of free cells. | |
The heap size given in number of cells.
Pointer to the heap of cells.
| unsigned char* muse_heap::marks |
An array of marks that is used to keep track of cell references during garbage collection.
Each cell is given 1-bit in the marks array, hence the size of the marks array is 1/8 of the total number of cells in the heap.
A reference to the first cell in the free list.
The number of free cells.
This is used nearly only for diagnostic purposes. May be removed in the future for efficiency reasons.
1.4.7