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 | GCSswpallgc 2 |
#define | GCSswpfinobj 3 |
#define | GCSswptobefnz 4 |
#define | GCSswpend 5 |
#define | GCScallfin 6 |
#define | GCSpause 7 |
#define | issweepphase(g) (GCSswpallgc <= (g)->gcstate && (g)->gcstate <= GCSswpend) |
#define | keepinvariant(g) ((g)->gcstate <= GCSatomic) |
#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 marked for finalization */ |
#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) ^ WHITEBITS) & (ow))) |
#define | isdead(g, v) isdeadm(otherwhite(g), (v)->marked) |
#define | changewhite(x) ((x)->marked ^= WHITEBITS) |
#define | gray2black(x) l_setbit((x)->marked, BLACKBIT) |
#define | luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) |
#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) |
#define | luaC_upvalbarrier(L, uv) |
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, Table *o) |
LUAI_FUNC void | luaC_upvalbarrier_ (lua_State *L, UpVal *uv) |
LUAI_FUNC void | luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt) |
LUAI_FUNC void | luaC_upvdeccount (lua_State *L, UpVal *uv) |
Definition at line 71 of file lua-5.3.6/src/lgc.h.
#define bitmask | ( | b | ) | (1<<(b)) |
Definition at line 70 of file lua-5.3.6/src/lgc.h.
#define BLACKBIT 2 /* object is black */ |
Definition at line 80 of file lua-5.3.6/src/lgc.h.
#define changewhite | ( | x | ) | ((x)->marked ^= WHITEBITS) |
Definition at line 98 of file lua-5.3.6/src/lgc.h.
#define FINALIZEDBIT 3 /* object has been marked for finalization */ |
Definition at line 81 of file lua-5.3.6/src/lgc.h.
#define GCSatomic 1 |
Definition at line 40 of file lua-5.3.6/src/lgc.h.
#define GCScallfin 6 |
Definition at line 45 of file lua-5.3.6/src/lgc.h.
Referenced by fullinc(), luaC_fullgc(), singlestep(), and singlestep().
#define GCSpause 7 |
Definition at line 46 of file lua-5.3.6/src/lgc.h.
#define GCSpropagate 0 |
Definition at line 39 of file lua-5.3.6/src/lgc.h.
#define GCSswpallgc 2 |
Definition at line 41 of file lua-5.3.6/src/lgc.h.
Referenced by atomic2gen(), entersweep(), entersweep(), singlestep(), singlestep(), and youngcollection().
#define GCSswpend 5 |
Definition at line 44 of file lua-5.3.6/src/lgc.h.
Referenced by singlestep(), and singlestep().
#define GCSswpfinobj 3 |
Definition at line 42 of file lua-5.3.6/src/lgc.h.
Referenced by singlestep(), and singlestep().
#define GCSswptobefnz 4 |
Definition at line 43 of file lua-5.3.6/src/lgc.h.
Referenced by singlestep(), and singlestep().
Definition at line 32 of file lua-5.3.6/src/lgc.h.
Definition at line 99 of file lua-5.3.6/src/lgc.h.
Definition at line 88 of file lua-5.3.6/src/lgc.h.
#define isdead | ( | g, | |
v ) isdeadm(otherwhite(g), (v)->marked) |
Definition at line 96 of file lua-5.3.6/src/lgc.h.
#define isdeadm | ( | ow, | |
m ) (!(((m) ^ WHITEBITS) & (ow))) |
Definition at line 95 of file lua-5.3.6/src/lgc.h.
#define isgray | ( | x | ) |
Definition at line 89 of file lua-5.3.6/src/lgc.h.
#define issweepphase | ( | g | ) | (GCSswpallgc <= (g)->gcstate && (g)->gcstate <= GCSswpend) |
Definition at line 49 of file lua-5.3.6/src/lgc.h.
Definition at line 87 of file lua-5.3.6/src/lgc.h.
#define keepinvariant | ( | g | ) | ((g)->gcstate <= GCSatomic) |
Definition at line 61 of file lua-5.3.6/src/lgc.h.
Definition at line 72 of file lua-5.3.6/src/lgc.h.
#define luaC_barrier | ( | L, | |
p, | |||
v ) |
Definition at line 118 of file lua-5.3.6/src/lgc.h.
#define luaC_barrierback | ( | L, | |
p, | |||
v ) |
Definition at line 122 of file lua-5.3.6/src/lgc.h.
#define luaC_checkGC | ( | L | ) | luaC_condGC(L,(void)0,(void)0) |
Definition at line 115 of file lua-5.3.6/src/lgc.h.
#define luaC_condGC | ( | L, | |
pre, | |||
pos ) |
Definition at line 110 of file lua-5.3.6/src/lgc.h.
#define luaC_objbarrier | ( | L, | |
p, | |||
o ) |
Definition at line 126 of file lua-5.3.6/src/lgc.h.
#define luaC_upvalbarrier | ( | L, | |
uv ) |
Definition at line 130 of file lua-5.3.6/src/lgc.h.
Referenced by lua_load(), lua_setupvalue(), lua_upvaluejoin(), luaF_close(), and luaV_execute().
Definition at line 101 of file lua-5.3.6/src/lgc.h.
#define otherwhite | ( | g | ) | ((g)->currentwhite ^ WHITEBITS) |
Definition at line 94 of file lua-5.3.6/src/lgc.h.
Definition at line 73 of file lua-5.3.6/src/lgc.h.
Definition at line 67 of file lua-5.3.6/src/lgc.h.
#define setbits | ( | x, | |
m ) ((x) |= (m)) |
Definition at line 68 of file lua-5.3.6/src/lgc.h.
Definition at line 74 of file lua-5.3.6/src/lgc.h.
#define testbits | ( | x, | |
m ) ((x) & (m)) |
Definition at line 69 of file lua-5.3.6/src/lgc.h.
#define tofinalize | ( | x | ) | testbit((x)->marked, FINALIZEDBIT) |
Definition at line 92 of file lua-5.3.6/src/lgc.h.
Referenced by luaC_checkfinalizer(), separatetobefnz(), separatetobefnz(), udata2finalize(), and udata2finalize().
#define WHITE0BIT 0 /* object is white (type 0) */ |
Definition at line 78 of file lua-5.3.6/src/lgc.h.
#define WHITE1BIT 1 /* object is white (type 1) */ |
Definition at line 79 of file lua-5.3.6/src/lgc.h.
Definition at line 84 of file lua-5.3.6/src/lgc.h.
Definition at line 135 of file lua-5.2.4/src/lgc.c.
Definition at line 171 of file lua-5.3.6/src/lgc.c.
References black2gray, G, global_State::grayagain, isblack, isdead, linkgclist, and lua_assert.
Definition at line 873 of file lua-5.2.4/src/lgc.c.
Definition at line 194 of file lua-5.3.6/src/lgc.c.
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 208 of file lua-5.3.6/src/lgc.c.
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.
Definition at line 185 of file lua-5.3.6/src/lgc.c.
References G, gcvalue, keepinvariant, lua_assert, markobject, upisopen, and UpVal::v.
Definition at line 678 of file lua-5.3.6/src/lgc.c.
References lua_assert, luaM_free, UpVal::refcount, and upisopen.
Referenced by freeLclosure(), and lua_upvaluejoin().