Go to the source code of this file.
Functions | |
_end () | |
pointer | alloc (int s, int e, int cid, int nils) |
gc () | |
pointer | halloc (int req, int e, int cid) |
mark (pointer p) | |
markall () | |
static bpointer | mergecell (bpointer p, int cbix) |
newchunk (int k) | |
reclaim (bpointer p) | |
static void | splitheap (int k) |
static void | sweep (struct chunk *cp) |
void | sweepall () |
Variables | |
mutex_t | alloc_lock |
long | alloccount [MAXBUDDY] |
struct chunk * | chunklist = NULL |
long | freeheap = 0 |
long | gccount |
context * | markctx |
long | marktime |
char * | maxmemory = (char *)0x100000 |
long | sweeptime |
long | totalheap = 0 |
_end | ( | ) |
Definition at line 113 of file memory.safe.c.
gc | ( | void | ) |
Definition at line 258 of file memory.safe.c.
Definition at line 80 of file memory.safe.c.
Definition at line 135 of file memory.safe.c.
markall | ( | void | ) |
Definition at line 166 of file memory.safe.c.
Definition at line 205 of file memory.safe.c.
newchunk | ( | int | k | ) |
Definition at line 34 of file memory.safe.c.
Definition at line 186 of file memory.safe.c.
static void splitheap | ( | int | k | ) | [static] |
Definition at line 57 of file memory.safe.c.
Definition at line 225 of file memory.safe.c.
void sweepall | ( | void | ) |
Definition at line 248 of file memory.safe.c.
mutex_t alloc_lock |
Definition at line 32 of file memory.safe.c.
long alloccount[MAXBUDDY] |
Definition at line 30 of file memory.safe.c.
Definition at line 27 of file memory.safe.c.
long freeheap = 0 |
Definition at line 26 of file memory.safe.c.
long gccount |
Definition at line 29 of file memory.safe.c.
Definition at line 133 of file memory.safe.c.
long marktime |
Definition at line 29 of file memory.safe.c.
char* maxmemory = (char *)0x100000 |
Definition at line 25 of file memory.safe.c.
long sweeptime |
Definition at line 29 of file memory.safe.c.
long totalheap = 0 |
Definition at line 26 of file memory.safe.c.