Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | GCSTEPSIZE (cast_int(100 * sizeof(TString))) |
#define | GCSpropagate 0 |
#define | GCSatomic 1 |
#define | GCSsweepstring 2 |
#define | GCSsweepudata 3 |
#define | GCSsweep 4 |
#define | GCSpause 5 |
#define | issweepphase(g) (GCSsweepstring <= (g)->gcstate && (g)->gcstate <= GCSsweep) |
#define | isgenerational(g) ((g)->gckind == KGC_GEN) |
#define | keepinvariant(g) (isgenerational(g) || g->gcstate <= GCSatomic) |
#define | keepinvariantout(g) |
#define | resetbits(x, m) ((x) &= cast(lu_byte, ~(m))) |
#define | setbits(x, m) ((x) |= (m)) |
#define | testbits(x, m) ((x) & (m)) |
#define | bitmask(b) (1<<(b)) |
#define | bit2mask(b1, b2) (bitmask(b1) | bitmask(b2)) |
#define | l_setbit(x, b) setbits(x, bitmask(b)) |
#define | resetbit(x, b) resetbits(x, bitmask(b)) |
#define | testbit(x, b) testbits(x, bitmask(b)) |
#define | WHITE0BIT 0 /* object is white (type 0) */ |
#define | WHITE1BIT 1 /* object is white (type 1) */ |
#define | BLACKBIT 2 /* object is black */ |
#define | FINALIZEDBIT 3 /* object has been separated for finalization */ |
#define | SEPARATED 4 /* object is in 'finobj' list or in 'tobefnz' */ |
#define | FIXEDBIT 5 /* object is fixed (should not be collected) */ |
#define | OLDBIT 6 /* object is old (only in generational mode) */ |
#define | WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) |
#define | iswhite(x) testbits((x)->gch.marked, WHITEBITS) |
#define | isblack(x) testbit((x)->gch.marked, BLACKBIT) |
#define | isgray(x) |
#define | isold(x) testbit((x)->gch.marked, OLDBIT) |
#define | resetoldbit(o) resetbit((o)->gch.marked, OLDBIT) |
#define | otherwhite(g) (g->currentwhite ^ WHITEBITS) |
#define | isdeadm(ow, m) (!(((m) ^ WHITEBITS) & (ow))) |
#define | isdead(g, v) isdeadm(otherwhite(g), (v)->gch.marked) |
#define | changewhite(x) ((x)->gch.marked ^= WHITEBITS) |
#define | gray2black(x) l_setbit((x)->gch.marked, BLACKBIT) |
#define | valiswhite(x) (iscollectable(x) && iswhite(gcvalue(x))) |
#define | luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) |
#define | luaC_condGC(L, c) {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} |
#define | luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) |
#define | luaC_barrier(L, p, v) |
#define | luaC_barrierback(L, p, v) |
#define | luaC_objbarrier(L, p, o) |
#define | luaC_objbarrierback(L, p, o) { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) luaC_barrierback_(L,p); } |
#define | luaC_barrierproto(L, p, c) { if (isblack(obj2gco(p))) luaC_barrierproto_(L,p,c); } |
Functions | |
LUAI_FUNC void | luaC_freeallobjects (lua_State *L) |
LUAI_FUNC void | luaC_step (lua_State *L) |
LUAI_FUNC void | luaC_forcestep (lua_State *L) |
LUAI_FUNC void | luaC_runtilstate (lua_State *L, int statesmask) |
LUAI_FUNC void | luaC_fullgc (lua_State *L, int isemergency) |
LUAI_FUNC GCObject * | luaC_newobj (lua_State *L, int tt, size_t sz, GCObject **list, int offset) |
LUAI_FUNC void | luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v) |
LUAI_FUNC void | luaC_barrierback_ (lua_State *L, GCObject *o) |
LUAI_FUNC void | luaC_barrierproto_ (lua_State *L, Proto *p, Closure *c) |
LUAI_FUNC void | luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt) |
LUAI_FUNC void | luaC_checkupvalcolor (global_State *g, UpVal *uv) |
LUAI_FUNC void | luaC_changemode (lua_State *L, int mode) |
Definition at line 80 of file lua-5.2.4/src/lgc.h.
#define bitmask | ( | b | ) | (1<<(b)) |
Definition at line 79 of file lua-5.2.4/src/lgc.h.
#define BLACKBIT 2 /* object is black */ |
Definition at line 89 of file lua-5.2.4/src/lgc.h.
#define changewhite | ( | x | ) | ((x)->gch.marked ^= WHITEBITS) |
Definition at line 114 of file lua-5.2.4/src/lgc.h.
#define FINALIZEDBIT 3 /* object has been separated for finalization */ |
Definition at line 90 of file lua-5.2.4/src/lgc.h.
#define FIXEDBIT 5 /* object is fixed (should not be collected) */ |
Definition at line 92 of file lua-5.2.4/src/lgc.h.
#define GCSatomic 1 |
Definition at line 40 of file lua-5.2.4/src/lgc.h.
Referenced by atomic(), singlestep(), singlestep(), traverseephemeron(), traversestack(), traversethread(), and traverseweakvalue().
#define GCSpause 5 |
Definition at line 44 of file lua-5.2.4/src/lgc.h.
#define GCSpropagate 0 |
Definition at line 39 of file lua-5.2.4/src/lgc.h.
#define GCSsweep 4 |
Definition at line 43 of file lua-5.2.4/src/lgc.h.
#define GCSsweepstring 2 |
Definition at line 41 of file lua-5.2.4/src/lgc.h.
#define GCSsweepudata 3 |
Definition at line 42 of file lua-5.2.4/src/lgc.h.
Referenced by singlestep().
Definition at line 32 of file lua-5.2.4/src/lgc.h.
Definition at line 115 of file lua-5.2.4/src/lgc.h.
Definition at line 100 of file lua-5.2.4/src/lgc.h.
#define isdead | ( | g, | |
v ) isdeadm(otherwhite(g), (v)->gch.marked) |
Definition at line 112 of file lua-5.2.4/src/lgc.h.
#define isdeadm | ( | ow, | |
m ) (!(((m) ^ WHITEBITS) & (ow))) |
Definition at line 111 of file lua-5.2.4/src/lgc.h.
Referenced by sweeplist(), sweeplist(), and sweeplist().
#define isgenerational | ( | g | ) | ((g)->gckind == KGC_GEN) |
Definition at line 50 of file lua-5.2.4/src/lgc.h.
Referenced by luaC_forcestep(), singlestep(), and sweeplist().
#define isgray | ( | x | ) |
Definition at line 101 of file lua-5.2.4/src/lgc.h.
Definition at line 104 of file lua-5.2.4/src/lgc.h.
Referenced by correctgraylist(), luaC_barrier_(), luaC_barrierback_(), luaF_findupval(), remarkupvals(), sweepgen(), traversethread(), and udata2finalize().
#define issweepphase | ( | g | ) | (GCSsweepstring <= (g)->gcstate && (g)->gcstate <= GCSsweep) |
Definition at line 47 of file lua-5.2.4/src/lgc.h.
Referenced by luaC_barrier_(), luaC_checkfinalizer(), luaC_checkupvalcolor(), udata2finalize(), and udata2finalize().
Definition at line 99 of file lua-5.2.4/src/lgc.h.
#define keepinvariant | ( | g | ) | (isgenerational(g) || g->gcstate <= GCSatomic) |
Definition at line 61 of file lua-5.2.4/src/lgc.h.
Referenced by fullinc(), luaC_barrier_(), luaC_checkupvalcolor(), luaC_fullgc(), and luaC_upvalbarrier_().
#define keepinvariantout | ( | g | ) |
Definition at line 68 of file lua-5.2.4/src/lgc.h.
Referenced by luaC_barrier_(), luaC_checkfinalizer(), and udata2finalize().
Definition at line 81 of file lua-5.2.4/src/lgc.h.
#define luaC_barrier | ( | L, | |
p, | |||
v ) |
Definition at line 127 of file lua-5.2.4/src/lgc.h.
#define luaC_barrierback | ( | L, | |
p, | |||
v ) |
Definition at line 130 of file lua-5.2.4/src/lgc.h.
Referenced by aux_rawset(), lua_rawset(), lua_rawseti(), lua_rawseti(), lua_rawsetp(), lua_setiuservalue(), luaH_newkey(), luaH_newkey(), luaV_execute(), luaV_execute(), luaV_finishset(), luaV_finishset(), and luaV_settable().
#define luaC_barrierproto | ( | L, | |
p, | |||
c ) { if (isblack(obj2gco(p))) luaC_barrierproto_(L,p,c); } |
Definition at line 140 of file lua-5.2.4/src/lgc.h.
Referenced by pushclosure().
#define luaC_checkGC | ( | L | ) | luaC_condGC(L, luaC_step(L);) |
Definition at line 124 of file lua-5.2.4/src/lgc.h.
#define luaC_condGC | ( | L, | |
c ) {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} |
Definition at line 122 of file lua-5.2.4/src/lgc.h.
#define luaC_objbarrier | ( | L, | |
p, | |||
o ) |
Definition at line 133 of file lua-5.2.4/src/lgc.h.
#define luaC_objbarrierback | ( | L, | |
p, | |||
o ) { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) luaC_barrierback_(L,p); } |
Definition at line 137 of file lua-5.2.4/src/lgc.h.
Referenced by lua_setmetatable().
Definition at line 119 of file lua-5.2.4/src/lgc.h.
#define OLDBIT 6 /* object is old (only in generational mode) */ |
Definition at line 93 of file lua-5.2.4/src/lgc.h.
Referenced by sweeplist().
#define otherwhite | ( | g | ) | (g->currentwhite ^ WHITEBITS) |
Definition at line 110 of file lua-5.2.4/src/lgc.h.
Definition at line 82 of file lua-5.2.4/src/lgc.h.
Definition at line 76 of file lua-5.2.4/src/lgc.h.
Definition at line 108 of file lua-5.2.4/src/lgc.h.
Referenced by callallpendingfinalizers(), luaC_checkfinalizer(), luaC_checkupvalcolor(), and luaS_resize().
#define SEPARATED 4 /* object is in 'finobj' list or in 'tobefnz' */ |
Definition at line 91 of file lua-5.2.4/src/lgc.h.
Referenced by luaC_checkfinalizer(), separatetobefnz(), and udata2finalize().
#define setbits | ( | x, | |
m ) ((x) |= (m)) |
Definition at line 77 of file lua-5.2.4/src/lgc.h.
Definition at line 83 of file lua-5.2.4/src/lgc.h.
#define testbits | ( | x, | |
m ) ((x) & (m)) |
Definition at line 78 of file lua-5.2.4/src/lgc.h.
#define valiswhite | ( | x | ) | (iscollectable(x) && iswhite(gcvalue(x))) |
Definition at line 117 of file lua-5.2.4/src/lgc.h.
#define WHITE0BIT 0 /* object is white (type 0) */ |
Definition at line 87 of file lua-5.2.4/src/lgc.h.
#define WHITE1BIT 1 /* object is white (type 1) */ |
Definition at line 88 of file lua-5.2.4/src/lgc.h.
Definition at line 96 of file lua-5.2.4/src/lgc.h.
Definition at line 135 of file lua-5.2.4/src/lgc.c.
Definition at line 155 of file lua-5.2.4/src/lgc.c.
Definition at line 172 of file lua-5.2.4/src/lgc.c.
References black2gray, Proto::cache, G, Proto::gclist, global_State::grayagain, isblack, lua_assert, luaC_objbarrier, NULL, and obj2gco.
Definition at line 952 of file lua-5.2.4/src/lgc.c.
Definition at line 873 of file lua-5.2.4/src/lgc.c.
LUAI_FUNC void luaC_checkupvalcolor | ( | global_State * | g, |
UpVal * | uv ) |
Definition at line 190 of file lua-5.2.4/src/lgc.c.
References gray2black, isblack, isgray, issweepphase, keepinvariant, lua_assert, makewhite, markvalue, obj2gco, resetoldbit, and UpVal::v.
Referenced by luaF_close().
Definition at line 1163 of file lua-5.2.4/src/lgc.c.
References G, GCFINALIZENUM, GCSpause, global_State::gcstate, GCTM(), generationalcollection(), incstep(), isgenerational, and global_State::tobefnz.
Referenced by lua_gc(), and luaC_step().
Definition at line 983 of file lua-5.2.4/src/lgc.c.
Definition at line 1189 of file lua-5.2.4/src/lgc.c.
Definition at line 212 of file lua-5.2.4/src/lgc.c.
References global_State::allgc, cast, G, gch, luaC_white, luaM_newobject, novariant, NULL, and obj2gco.
Referenced by createstrobj(), createstrobj(), createstrobj(), lua_newthread(), luaF_findupval(), luaF_initupvals(), luaF_newCclosure(), luaF_newCclosure(), luaF_newLclosure(), luaF_newLclosure(), luaF_newproto(), luaF_newupval(), luaH_new(), luaS_newudata(), luaS_newudata(), luaS_newudata(), and newupval().
Definition at line 1110 of file lua-5.2.4/src/lgc.c.
Definition at line 610 of file lua-5.1.5/src/lgc.c.