|
#define | GCFINALIZECOST 50 |
|
#define | GCFINMAX 10 |
|
#define | GCSWEEPMAX 100 |
|
#define | gcvalueN(o) (iscollectable(o) ? gcvalue(o) : NULL) |
|
#define | gnodelast(h) gnode(h, cast_sizet(sizenode(h))) |
|
#define | keyiswhite(n) (keyiscollectable(n) && iswhite(gckey(n))) |
|
#define | lgc_c |
|
#define | linkgclist(o, p) linkgclist_(obj2gco(o), &(o)->gclist, &(p)) |
|
#define | linkobjgclist(o, p) linkgclist_(obj2gco(o), getgclist(o), &(p)) |
|
#define | LUA_CORE |
|
#define | makewhite(g, x) (x->marked = cast_byte((x->marked & ~maskcolors) | luaC_white(g))) |
|
#define | markkey(g, n) { if keyiswhite(n) reallymarkobject(g,gckey(n)); } |
|
#define | markobject(g, t) { if (iswhite(t)) reallymarkobject(g, obj2gco(t)); } |
|
#define | markobjectN(g, t) { if (t) markobject(g,t); } |
|
#define | markvalue(g, o) |
|
#define | maskcolors (bitmask(BLACKBIT) | WHITEBITS) |
|
#define | maskgcbits (maskcolors | AGEBITS) |
|
#define | PAUSEADJ 100 |
|
#define | set2black(x) (x->marked = cast_byte((x->marked & ~WHITEBITS) | bitmask(BLACKBIT))) |
|
#define | set2gray(x) resetbits(x->marked, maskcolors) |
|
#define | valiswhite(x) (iscollectable(x) && iswhite(gcvalue(x))) |
|
#define | WORK2MEM sizeof(TValue) |
|
|
static lu_mem | atomic (lua_State *L) |
|
static void | atomic2gen (lua_State *L, global_State *g) |
|
static void | callallpendingfinalizers (lua_State *L) |
|
static void | checkpointer (GCObject **p, GCObject *o) |
|
static void | checkSizes (lua_State *L, global_State *g) |
|
static void | clearbykeys (global_State *g, GCObject *l) |
|
static void | clearbyvalues (global_State *g, GCObject *l, GCObject *f) |
|
static void | cleargraylists (global_State *g) |
|
static void | clearkey (Node *n) |
|
static void | convergeephemerons (global_State *g) |
|
static GCObject ** | correctgraylist (GCObject **p) |
|
static void | correctgraylists (global_State *g) |
|
static void | correctpointers (global_State *g, GCObject *o) |
|
static void | deletelist (lua_State *L, GCObject *p, GCObject *limit) |
|
static void | dothecall (lua_State *L, void *ud) |
|
static lu_mem | entergen (lua_State *L, global_State *g) |
|
static void | enterinc (global_State *g) |
|
static void | entersweep (lua_State *L) |
|
static GCObject ** | findlast (GCObject **p) |
|
static void | finishgencycle (lua_State *L, global_State *g) |
|
static void | freeobj (lua_State *L, GCObject *o) |
|
static void | freeupval (lua_State *L, UpVal *uv) |
|
static lu_mem | fullgen (lua_State *L, global_State *g) |
|
static void | fullinc (lua_State *L, global_State *g) |
|
static void | GCTM (lua_State *L) |
|
static void | genlink (global_State *g, GCObject *o) |
|
static void | genstep (lua_State *L, global_State *g) |
|
static GCObject ** | getgclist (GCObject *o) |
|
static void | incstep (lua_State *L, global_State *g) |
|
static int | iscleared (global_State *g, const GCObject *o) |
|
static void | linkgclist_ (GCObject *o, GCObject **pnext, GCObject **list) |
|
void | luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v) |
|
void | luaC_barrierback_ (lua_State *L, GCObject *o) |
|
void | luaC_changemode (lua_State *L, int newmode) |
|
void | luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt) |
|
void | luaC_fix (lua_State *L, GCObject *o) |
|
void | luaC_freeallobjects (lua_State *L) |
|
void | luaC_fullgc (lua_State *L, int isemergency) |
|
GCObject * | luaC_newobj (lua_State *L, int tt, size_t sz) |
|
void | luaC_runtilstate (lua_State *L, int statesmask) |
|
void | luaC_step (lua_State *L) |
|
static lu_mem | markbeingfnz (global_State *g) |
|
static void | markmt (global_State *g) |
|
static void | markold (global_State *g, GCObject *from, GCObject *to) |
|
static lu_mem | propagateall (global_State *g) |
|
static lu_mem | propagatemark (global_State *g) |
|
static void | reallymarkobject (global_State *g, GCObject *o) |
|
static int | remarkupvals (global_State *g) |
|
static void | restartcollection (global_State *g) |
|
static int | runafewfinalizers (lua_State *L, int n) |
|
static void | separatetobefnz (global_State *g, int all) |
|
static void | setminordebt (global_State *g) |
|
static void | setpause (global_State *g) |
|
static lu_mem | singlestep (lua_State *L) |
|
static void | stepgenfull (lua_State *L, global_State *g) |
|
static void | sweep2old (lua_State *L, GCObject **p) |
|
static GCObject ** | sweepgen (lua_State *L, global_State *g, GCObject **p, GCObject *limit, GCObject **pfirstold1) |
|
static GCObject ** | sweeplist (lua_State *L, GCObject **p, int countin, int *countout) |
|
static int | sweepstep (lua_State *L, global_State *g, int nextstate, GCObject **nextlist) |
|
static GCObject ** | sweeptolive (lua_State *L, GCObject **p) |
|
static int | traverseCclosure (global_State *g, CClosure *cl) |
|
static int | traverseephemeron (global_State *g, Table *h, int inv) |
|
static int | traverseLclosure (global_State *g, LClosure *cl) |
|
static int | traverseproto (global_State *g, Proto *f) |
|
static void | traversestrongtable (global_State *g, Table *h) |
|
static lu_mem | traversetable (global_State *g, Table *h) |
|
static int | traversethread (global_State *g, lua_State *th) |
|
static int | traverseudata (global_State *g, Udata *u) |
|
static void | traverseweakvalue (global_State *g, Table *h) |
|
static GCObject * | udata2finalize (global_State *g) |
|
static void | whitelist (global_State *g, GCObject *p) |
|
static void | youngcollection (lua_State *L, global_State *g) |
|