Macros | Functions | Variables
rgc_mem.c File Reference
#include <sys/types.h>
#include <sys/times.h>
#include "eus.h"
Include dependency graph for rgc_mem.c:

Go to the source code of this file.

Macros

#define my_gc_pri   ctx->my_gc_pri
 
#define myctx   (euscontexts[thr_self()])
 

Functions

static unsigned long net_free (int req)
 
static int recalc_gc_priority (int req)
 
pointer rgc_alloc (register int s, int e, int cid, register int nils)
 
static int rgc_expand_heap_or_complete_gc (int req)
 
bpointer rgc_root_alloc_big (register context *ctx, register int req)
 
void rgc_root_alloc_small (register context *ctx, register int req)
 
static int should_start_gc (int req)
 

Variables

long alloccount [MAXBUDDY]
 
long freeheap
 
static volatile int gc_pri = 0
 
static int km [10] = {4096, 4800, 6000, 8192}
 
static int ks [10] = {256, 256, 384, 512}
 
long marked_words
 
static volatile int rem_cnt = 0
 
long totalheap
 

Macro Definition Documentation

◆ my_gc_pri

#define my_gc_pri   ctx->my_gc_pri

Definition at line 117 of file rgc_mem.c.

◆ myctx

#define myctx   (euscontexts[thr_self()])

Definition at line 9 of file rgc_mem.c.

Function Documentation

◆ net_free()

static unsigned long net_free ( int  req)
inlinestatic

Definition at line 57 of file rgc_mem.c.

◆ recalc_gc_priority()

static int recalc_gc_priority ( int  req)
static

Definition at line 71 of file rgc_mem.c.

◆ rgc_alloc()

pointer rgc_alloc ( register int  s,
int  e,
int  cid,
register int  nils 
)

Definition at line 347 of file rgc_mem.c.

◆ rgc_expand_heap_or_complete_gc()

static int rgc_expand_heap_or_complete_gc ( int  req)
static

Definition at line 26 of file rgc_mem.c.

◆ rgc_root_alloc_big()

bpointer rgc_root_alloc_big ( register context ctx,
register int  req 
)

Definition at line 133 of file rgc_mem.c.

◆ rgc_root_alloc_small()

void rgc_root_alloc_small ( register context ctx,
register int  req 
)

Definition at line 236 of file rgc_mem.c.

◆ should_start_gc()

static int should_start_gc ( int  req)
static

Definition at line 120 of file rgc_mem.c.

Variable Documentation

◆ alloccount

long alloccount[MAXBUDDY]

Definition at line 16 of file rgc_mem.c.

◆ freeheap

long freeheap

Definition at line 56 of file memory.c.

◆ gc_pri

volatile int gc_pri = 0
static

Definition at line 116 of file rgc_mem.c.

◆ km

int km[10] = {4096, 4800, 6000, 8192}
static

Definition at line 68 of file rgc_mem.c.

◆ ks

int ks[10] = {256, 256, 384, 512}
static

Definition at line 69 of file rgc_mem.c.

◆ marked_words

long marked_words

Definition at line 12 of file rgc_mem.c.

◆ rem_cnt

volatile int rem_cnt = 0
static

Definition at line 115 of file rgc_mem.c.

◆ totalheap

long totalheap

Definition at line 12 of file rgc_mem.c.



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