Functions | Variables
memory.safe.c File Reference

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 chunkchunklist =NULL
 
long freeheap =0
 
long gccount
 
contextmarkctx
 
long marktime
 
char * maxmemory =(char *)0x100000
 
long sweeptime
 
long totalheap =0
 

Function Documentation

◆ _end()

_end ( )

Definition at line 33 of file eus.c.

◆ alloc()

pointer alloc ( int  s,
int  e,
int  cid,
int  nils 
)

Definition at line 113 of file memory.safe.c.

◆ gc()

gc ( )

Definition at line 258 of file memory.safe.c.

◆ halloc()

pointer halloc ( int  req,
int  e,
int  cid 
)

Definition at line 80 of file memory.safe.c.

◆ mark()

mark ( pointer  p)

Definition at line 135 of file memory.safe.c.

◆ markall()

markall ( )

Definition at line 166 of file memory.safe.c.

◆ mergecell()

static bpointer mergecell ( bpointer  p,
int  cbix 
)
static

Definition at line 205 of file memory.safe.c.

◆ newchunk()

newchunk ( int  k)

Definition at line 34 of file memory.safe.c.

◆ reclaim()

reclaim ( bpointer  p)

Definition at line 186 of file memory.safe.c.

◆ splitheap()

static void splitheap ( int  k)
static

Definition at line 57 of file memory.safe.c.

◆ sweep()

static void sweep ( struct chunk cp)
static

Definition at line 225 of file memory.safe.c.

◆ sweepall()

void sweepall ( )

Definition at line 248 of file memory.safe.c.

Variable Documentation

◆ alloc_lock

mutex_t alloc_lock

Definition at line 32 of file memory.safe.c.

◆ alloccount

long alloccount[MAXBUDDY]

Definition at line 30 of file memory.safe.c.

◆ chunklist

struct chunk* chunklist =NULL

Definition at line 27 of file memory.safe.c.

◆ freeheap

long freeheap =0

Definition at line 26 of file memory.safe.c.

◆ gccount

long gccount

Definition at line 29 of file memory.safe.c.

◆ markctx

context* markctx

Definition at line 133 of file memory.safe.c.

◆ marktime

long marktime

Definition at line 29 of file memory.safe.c.

◆ maxmemory

char* maxmemory =(char *)0x100000

Definition at line 25 of file memory.safe.c.

◆ sweeptime

long sweeptime

Definition at line 29 of file memory.safe.c.

◆ totalheap

long totalheap =0

Definition at line 26 of file memory.safe.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43