muse_heap Struct Reference

The muse heap is an array of cells where the cells available for allocation are collected into a free list. More...

#include <muse_opcodes.h>

Collaboration diagram for muse_heap:

Collaboration graph
[legend]

Data Fields

int size_cells
 The heap size given in number of cells.
muse_cell_datacells
 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.

Detailed Description

The muse heap is an array of cells where the cells available for allocation are collected into a free list.


Field Documentation

int muse_heap::size_cells

The heap size given in number of cells.

muse_cell_data* muse_heap::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.

muse_cell muse_heap::free_cells

A reference to the first cell in the free list.

int muse_heap::free_cell_count

The number of free cells.

This is used nearly only for diagnostic purposes. May be removed in the future for efficiency reasons.


The documentation for this struct was generated from the following file:
Generated on Mon Sep 25 23:12:51 2006 for muSE by  doxygen 1.4.7