Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | GCSpropagate 0 |
#define | GCSenteratomic 1 |
#define | GCSatomic 2 |
#define | GCSswpallgc 3 |
#define | GCSswpfinobj 4 |
#define | GCSswptobefnz 5 |
#define | GCSswpend 6 |
#define | GCScallfin 7 |
#define | GCSpause 8 |
#define | issweepphase(g) (GCSswpallgc <= (g)->gcstate && (g)->gcstate <= GCSswpend) |
#define | keepinvariant(g) ((g)->gcstate <= GCSatomic) |
#define | resetbits(x, m) ((x) &= cast_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 3 /* object is white (type 0) */ |
#define | WHITE1BIT 4 /* object is white (type 1) */ |
#define | BLACKBIT 5 /* object is black */ |
#define | FINALIZEDBIT 6 /* object has been marked for finalization */ |
#define | TESTBIT 7 |
#define | WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) |
#define | iswhite(x) testbits((x)->marked, WHITEBITS) |
#define | isblack(x) testbit((x)->marked, BLACKBIT) |
#define | isgray(x) |
#define | tofinalize(x) testbit((x)->marked, FINALIZEDBIT) |
#define | otherwhite(g) ((g)->currentwhite ^ WHITEBITS) |
#define | isdeadm(ow, m) ((m) & (ow)) |
#define | isdead(g, v) isdeadm(otherwhite(g), (v)->marked) |
#define | changewhite(x) ((x)->marked ^= WHITEBITS) |
#define | nw2black(x) check_exp(!iswhite(x), l_setbit((x)->marked, BLACKBIT)) |
#define | luaC_white(g) cast_byte((g)->currentwhite & WHITEBITS) |
#define | G_NEW 0 /* created in current cycle */ |
#define | G_SURVIVAL 1 /* created in previous cycle */ |
#define | G_OLD0 2 /* marked old by frw. barrier in this cycle */ |
#define | G_OLD1 3 /* first full cycle as old */ |
#define | G_OLD 4 /* really old object (not to be visited) */ |
#define | G_TOUCHED1 5 /* old object touched this cycle */ |
#define | G_TOUCHED2 6 /* old object touched in previous cycle */ |
#define | AGEBITS 7 /* all age bits (111) */ |
#define | getage(o) ((o)->marked & AGEBITS) |
#define | setage(o, a) ((o)->marked = cast_byte(((o)->marked & (~AGEBITS)) | a)) |
#define | isold(o) (getage(o) > G_SURVIVAL) |
#define | changeage(o, f, t) check_exp(getage(o) == (f), (o)->marked ^= ((f)^(t))) |
#define | LUAI_GENMAJORMUL 100 |
#define | LUAI_GENMINORMUL 20 |
#define | LUAI_GCPAUSE 200 |
#define | getgcparam(p) ((p) * 4) |
#define | setgcparam(p, v) ((p) = (v) / 4) |
#define | LUAI_GCMUL 100 |
#define | LUAI_GCSTEPSIZE 13 /* 8 KB */ |
#define | isdecGCmodegen(g) (g->gckind == KGC_GEN || g->lastatomic != 0) |
#define | luaC_condGC(L, pre, pos) |
#define | luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0) |
#define | luaC_barrier(L, p, v) |
#define | luaC_barrierback(L, p, v) |
#define | luaC_objbarrier(L, p, o) |
Functions | |
LUAI_FUNC void | luaC_fix (lua_State *L, GCObject *o) |
LUAI_FUNC void | luaC_freeallobjects (lua_State *L) |
LUAI_FUNC void | luaC_step (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) |
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_checkfinalizer (lua_State *L, GCObject *o, Table *mt) |
LUAI_FUNC void | luaC_changemode (lua_State *L, int newmode) |
#define AGEBITS 7 /* all age bits (111) */ |
Definition at line 114 of file lua-5.4.3/src/lgc.h.
Definition at line 64 of file lua-5.4.3/src/lgc.h.
#define bitmask | ( | b | ) | (1<<(b)) |
Definition at line 63 of file lua-5.4.3/src/lgc.h.
#define BLACKBIT 5 /* object is black */ |
Definition at line 77 of file lua-5.4.3/src/lgc.h.
Definition at line 120 of file lua-5.4.3/src/lgc.h.
Referenced by correctgraylist(), genlink(), and markold().
#define changewhite | ( | x | ) | ((x)->marked ^= WHITEBITS) |
Definition at line 98 of file lua-5.4.3/src/lgc.h.
#define FINALIZEDBIT 6 /* object has been marked for finalization */ |
Definition at line 78 of file lua-5.4.3/src/lgc.h.
#define G_NEW 0 /* created in current cycle */ |
Definition at line 106 of file lua-5.4.3/src/lgc.h.
Referenced by sweepgen().
#define G_OLD 4 /* really old object (not to be visited) */ |
Definition at line 110 of file lua-5.4.3/src/lgc.h.
Referenced by correctgraylist(), genlink(), luaC_fix(), markold(), sweep2old(), and sweepgen().
#define G_OLD0 2 /* marked old by frw. barrier in this cycle */ |
Definition at line 108 of file lua-5.4.3/src/lgc.h.
Referenced by luaC_barrier_().
#define G_OLD1 3 /* first full cycle as old */ |
Definition at line 109 of file lua-5.4.3/src/lgc.h.
Referenced by markold(), sweepgen(), and udata2finalize().
#define G_SURVIVAL 1 /* created in previous cycle */ |
Definition at line 107 of file lua-5.4.3/src/lgc.h.
Referenced by sweepgen().
#define G_TOUCHED1 5 /* old object touched this cycle */ |
Definition at line 111 of file lua-5.4.3/src/lgc.h.
Referenced by correctgraylist(), genlink(), luaC_barrierback_(), and sweepgen().
#define G_TOUCHED2 6 /* old object touched in previous cycle */ |
Definition at line 112 of file lua-5.4.3/src/lgc.h.
Referenced by correctgraylist(), genlink(), luaC_barrierback_(), and sweepgen().
#define GCSatomic 2 |
Definition at line 33 of file lua-5.4.3/src/lgc.h.
#define GCScallfin 7 |
Definition at line 38 of file lua-5.4.3/src/lgc.h.
#define GCSenteratomic 1 |
Definition at line 32 of file lua-5.4.3/src/lgc.h.
Referenced by singlestep().
#define GCSpause 8 |
Definition at line 39 of file lua-5.4.3/src/lgc.h.
#define GCSpropagate 0 |
Definition at line 31 of file lua-5.4.3/src/lgc.h.
#define GCSswpallgc 3 |
Definition at line 34 of file lua-5.4.3/src/lgc.h.
#define GCSswpend 6 |
Definition at line 37 of file lua-5.4.3/src/lgc.h.
#define GCSswpfinobj 4 |
Definition at line 35 of file lua-5.4.3/src/lgc.h.
#define GCSswptobefnz 5 |
Definition at line 36 of file lua-5.4.3/src/lgc.h.
#define getage | ( | o | ) | ((o)->marked & AGEBITS) |
Definition at line 116 of file lua-5.4.3/src/lgc.h.
Referenced by correctgraylist(), genlink(), luaC_barrierback_(), markold(), remarkupvals(), sweepgen(), and udata2finalize().
#define getgcparam | ( | p | ) | ((p) * 4) |
Definition at line 135 of file lua-5.4.3/src/lgc.h.
Referenced by genstep(), incstep(), lua_gc(), and setpause().
Definition at line 88 of file lua-5.4.3/src/lgc.h.
#define isdead | ( | g, | |
v ) isdeadm(otherwhite(g), (v)->marked) |
Definition at line 96 of file lua-5.4.3/src/lgc.h.
#define isdeadm | ( | ow, | |
m ) ((m) & (ow)) |
Definition at line 95 of file lua-5.4.3/src/lgc.h.
#define isdecGCmodegen | ( | g | ) | (g->gckind == KGC_GEN || g->lastatomic != 0) |
Definition at line 149 of file lua-5.4.3/src/lgc.h.
Referenced by genstep(), lua_gc(), and luaC_step().
#define isgray | ( | x | ) |
Definition at line 89 of file lua-5.4.3/src/lgc.h.
#define isold | ( | o | ) | (getage(o) > G_SURVIVAL) |
Definition at line 118 of file lua-5.4.3/src/lgc.h.
#define issweepphase | ( | g | ) | (GCSswpallgc <= (g)->gcstate && (g)->gcstate <= GCSswpend) |
Definition at line 42 of file lua-5.4.3/src/lgc.h.
Definition at line 87 of file lua-5.4.3/src/lgc.h.
#define keepinvariant | ( | g | ) | ((g)->gcstate <= GCSatomic) |
Definition at line 54 of file lua-5.4.3/src/lgc.h.
Definition at line 65 of file lua-5.4.3/src/lgc.h.
#define luaC_barrier | ( | L, | |
p, | |||
v ) |
Definition at line 165 of file lua-5.4.3/src/lgc.h.
#define luaC_barrierback | ( | L, | |
p, | |||
v ) |
Definition at line 169 of file lua-5.4.3/src/lgc.h.
#define luaC_checkGC | ( | L | ) | luaC_condGC(L,(void)0,(void)0) |
Definition at line 162 of file lua-5.4.3/src/lgc.h.
#define luaC_condGC | ( | L, | |
pre, | |||
pos ) |
Definition at line 157 of file lua-5.4.3/src/lgc.h.
#define luaC_objbarrier | ( | L, | |
p, | |||
o ) |
Definition at line 173 of file lua-5.4.3/src/lgc.h.
Definition at line 102 of file lua-5.4.3/src/lgc.h.
#define LUAI_GCMUL 100 |
Definition at line 138 of file lua-5.4.3/src/lgc.h.
#define LUAI_GCPAUSE 200 |
Definition at line 129 of file lua-5.4.3/src/lgc.h.
#define LUAI_GCSTEPSIZE 13 /* 8 KB */ |
Definition at line 141 of file lua-5.4.3/src/lgc.h.
Referenced by lua_newstate().
#define LUAI_GENMAJORMUL 100 |
Definition at line 125 of file lua-5.4.3/src/lgc.h.
Referenced by lua_newstate().
#define LUAI_GENMINORMUL 20 |
Definition at line 126 of file lua-5.4.3/src/lgc.h.
Referenced by lua_newstate().
Definition at line 99 of file lua-5.4.3/src/lgc.h.
Referenced by convergeephemerons(), correctgraylist(), luaF_closeupval(), propagatemark(), and sweep2old().
#define otherwhite | ( | g | ) | ((g)->currentwhite ^ WHITEBITS) |
Definition at line 94 of file lua-5.4.3/src/lgc.h.
Definition at line 66 of file lua-5.4.3/src/lgc.h.
#define resetbits | ( | x, | |
m ) ((x) &= cast_byte(~(m))) |
Definition at line 60 of file lua-5.4.3/src/lgc.h.
Definition at line 117 of file lua-5.4.3/src/lgc.h.
Referenced by luaC_barrier_(), luaC_barrierback_(), luaC_fix(), sweep2old(), and sweepgen().
#define setbits | ( | x, | |
m ) ((x) |= (m)) |
Definition at line 61 of file lua-5.4.3/src/lgc.h.
#define setgcparam | ( | p, | |
v ) ((p) = (v) / 4) |
Definition at line 136 of file lua-5.4.3/src/lgc.h.
Referenced by lua_gc(), and lua_newstate().
Definition at line 67 of file lua-5.4.3/src/lgc.h.
#define TESTBIT 7 |
Definition at line 80 of file lua-5.4.3/src/lgc.h.
#define testbits | ( | x, | |
m ) ((x) & (m)) |
Definition at line 62 of file lua-5.4.3/src/lgc.h.
#define tofinalize | ( | x | ) | testbit((x)->marked, FINALIZEDBIT) |
Definition at line 92 of file lua-5.4.3/src/lgc.h.
#define WHITE0BIT 3 /* object is white (type 0) */ |
Definition at line 75 of file lua-5.4.3/src/lgc.h.
#define WHITE1BIT 4 /* object is white (type 1) */ |
Definition at line 76 of file lua-5.4.3/src/lgc.h.
Definition at line 84 of file lua-5.4.3/src/lgc.h.
Definition at line 135 of file lua-5.2.4/src/lgc.c.
References G, G_OLD0, gch, global_State::gckind, GCSpause, global_State::gcstate, isblack, isdead, isold, issweepphase, iswhite, keepinvariant, keepinvariantout, KGC_INC, lua_assert, LUA_TTABLE, makewhite, reallymarkobject(), reallymarkobject(), reallymarkobject(), and setage.
Definition at line 155 of file lua-5.2.4/src/lgc.c.
References black2gray, G, G_TOUCHED1, G_TOUCHED2, gch, global_State::gckind, gco2t, getage, global_State::grayagain, isblack, isdead, isold, KGC_GEN, linkobjgclist, lua_assert, LUA_TTABLE, set2gray, and setage.
Definition at line 952 of file lua-5.2.4/src/lgc.c.
References bitmask, entergen(), enterinc(), entersweep(), G, global_State::GCestimate, global_State::gckind, GCSpropagate, gettotalbytes, KGC_GEN, KGC_NORMAL, global_State::lastatomic, luaC_runtilstate(), and sweepphases.
Referenced by lua_gc(), lua_gc(), and luaC_freeallobjects().
Definition at line 873 of file lua-5.2.4/src/lgc.c.
References global_State::allgc, correctpointers(), FINALIZEDBIT, global_State::finobj, G, gch, gfasttm, isfinalized, issweepphase, keepinvariantout, l_setbit, lua_assert, makewhite, NULL, resetoldbit, SEPARATED, global_State::sweepgc, sweeptolive(), sweeptolive(), sweeptolive(), testbit, TM_GC, and tofinalize.
Referenced by lua_setmetatable().
Definition at line 194 of file lua-5.3.6/src/lgc.c.
References global_State::allgc, global_State::fixedgc, G, G_OLD, lua_assert, set2gray, setage, and white2gray.
Referenced by luaS_init(), luaT_init(), and luaX_init().
Definition at line 983 of file lua-5.2.4/src/lgc.c.
References global_State::allgc, callallpendingfinalizers(), callallpendingfinalizers(), callallpendingfinalizers(), global_State::currentwhite, deletelist(), global_State::finobj, global_State::fixedgc, G, global_State::gckind, stringtable::hash, KGC_INC, KGC_NORMAL, lua_assert, luaC_changemode(), global_State::mainthread, NULL, stringtable::nuse, obj2gco, separatetobefnz(), separatetobefnz(), separatetobefnz(), stringtable::size, global_State::strt, sweepwholelist, global_State::tobefnz, and WHITEBITS.
Referenced by close_state(), close_state(), and close_state().
Definition at line 1189 of file lua-5.2.4/src/lgc.c.
References bitmask, callallpendingfinalizers(), entersweep(), entersweep(), fullgen(), fullinc(), G, global_State::gcemergency, global_State::GCestimate, global_State::gckind, GCScallfin, GCSpause, GCSpropagate, gettotalbytes, keepinvariant, KGC_EMERGENCY, KGC_GEN, KGC_INC, KGC_NORMAL, lua_assert, luaC_runtilstate(), setpause(), and setpause().
Referenced by generationalcollection().
Definition at line 208 of file lua-5.3.6/src/lgc.c.
References global_State::allgc, cast, G, luaC_white, luaM_newobject, and novariant.
Definition at line 1110 of file lua-5.2.4/src/lgc.c.
References G, global_State::gcstate, singlestep(), singlestep(), singlestep(), and testbit.
Referenced by entergen(), fullinc(), generationalcollection(), luaC_changemode(), luaC_fullgc(), luaS_resize(), and stepgenfull().
Definition at line 610 of file lua-5.1.5/src/lgc.c.
References G, global_State::gcdept, global_State::gcemergency, global_State::gcrunning, GCSpause, global_State::gcstate, global_State::gcstepmul, GCSTEPSIZE, global_State::GCthreshold, genstep(), getdebt(), incstep(), isdecGCmodegen, lua_assert, luaC_forcestep(), luaE_setdebt(), MAX_LUMEM, runafewfinalizers(), setpause(), setthreshold, singlestep(), singlestep(), STEPMULADJ, and global_State::totalbytes.