Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lobject.h"
Go to the source code of this file.
Macros | |
#define | GCSpause 0 |
#define | GCSpropagate 1 |
#define | GCSsweepstring 2 |
#define | GCSsweep 3 |
#define | GCSfinalize 4 |
#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 | set2bits(x, b1, b2) setbits(x, (bit2mask(b1, b2))) |
#define | reset2bits(x, b1, b2) resetbits(x, (bit2mask(b1, b2))) |
#define | test2bits(x, b1, b2) testbits(x, (bit2mask(b1, b2))) |
#define | WHITE0BIT 0 |
#define | WHITE1BIT 1 |
#define | BLACKBIT 2 |
#define | FINALIZEDBIT 3 |
#define | KEYWEAKBIT 3 |
#define | VALUEWEAKBIT 4 |
#define | FIXEDBIT 5 |
#define | SFIXEDBIT 6 |
#define | WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) |
#define | iswhite(x) test2bits((x)->gch.marked, WHITE0BIT, WHITE1BIT) |
#define | isblack(x) testbit((x)->gch.marked, BLACKBIT) |
#define | isgray(x) (!isblack(x) && !iswhite(x)) |
#define | otherwhite(g) (g->currentwhite ^ WHITEBITS) |
#define | isdead(g, v) ((v)->gch.marked & otherwhite(g) & WHITEBITS) |
#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_checkGC(L) |
#define | luaC_barrier(L, p, v) |
#define | luaC_barriert(L, t, v) |
#define | luaC_objbarrier(L, p, o) |
#define | luaC_objbarriert(L, t, o) { if (iswhite(obj2gco(o)) && isblack(obj2gco(t))) luaC_barrierback(L,t); } |
Functions | |
LUAI_FUNC size_t | luaC_separateudata (lua_State *L, int all) |
LUAI_FUNC void | luaC_callGCTM (lua_State *L) |
LUAI_FUNC void | luaC_freeall (lua_State *L) |
LUAI_FUNC void | luaC_step (lua_State *L) |
LUAI_FUNC void | luaC_fullgc (lua_State *L) |
LUAI_FUNC void | luaC_link (lua_State *L, GCObject *o, lu_byte tt) |
LUAI_FUNC void | luaC_linkupval (lua_State *L, UpVal *uv) |
LUAI_FUNC void | luaC_barrierf (lua_State *L, GCObject *o, GCObject *v) |
LUAI_FUNC void | luaC_barrierback (lua_State *L, Table *t) |
Definition at line 31 of file lua-5.1.5/src/lgc.h.
Referenced by lua_newstate().
#define bitmask | ( | b | ) | (1<<(b)) |
Definition at line 30 of file lua-5.1.5/src/lgc.h.
Referenced by entergen(), fullinc(), generationalcollection(), lua_newstate(), luaC_changemode(), luaC_freeall(), luaC_fullgc(), luaS_resize(), stepgenfull(), sweeplist(), and sweeplist().
#define BLACKBIT 2 |
Definition at line 56 of file lua-5.1.5/src/lgc.h.
#define changewhite | ( | x | ) | ((x)->gch.marked ^= WHITEBITS) |
Definition at line 72 of file lua-5.1.5/src/lgc.h.
Referenced by internshrstr(), internshrstr(), internshrstr(), luaF_findupval(), and luaS_newlstr().
#define FINALIZEDBIT 3 |
Definition at line 57 of file lua-5.1.5/src/lgc.h.
Referenced by luaC_checkfinalizer(), separatetobefnz(), udata2finalize(), and udata2finalize().
#define FIXEDBIT 5 |
Definition at line 60 of file lua-5.1.5/src/lgc.h.
Referenced by lua_newstate(), and sweeplist().
#define GCSfinalize 4 |
Definition at line 21 of file lua-5.1.5/src/lgc.h.
Referenced by luaC_barrierback(), luaC_barrierf(), luaC_fullgc(), luaC_linkupval(), and singlestep().
#define GCSpause 0 |
Definition at line 17 of file lua-5.1.5/src/lgc.h.
Referenced by entergen(), enterinc(), fullinc(), generationalcollection(), incstep(), incstep(), lua_gc(), lua_gc(), lua_newstate(), luaC_barrier_(), luaC_barrierback(), luaC_barrierf(), luaC_forcestep(), luaC_fullgc(), luaC_fullgc(), luaC_linkupval(), luaC_step(), singlestep(), singlestep(), singlestep(), singlestep(), and stepgenfull().
#define GCSpropagate 1 |
Definition at line 18 of file lua-5.1.5/src/lgc.h.
Referenced by entergen(), finishgencycle(), generationalcollection(), luaC_barrierf(), luaC_changemode(), luaC_fullgc(), luaC_fullgc(), luaC_linkupval(), markroot(), singlestep(), singlestep(), singlestep(), singlestep(), stepgenfull(), traverseephemeron(), traverseephemeron(), traversethread(), traverseweakvalue(), and youngcollection().
#define GCSsweep 3 |
Definition at line 20 of file lua-5.1.5/src/lgc.h.
Referenced by luaC_fullgc(), singlestep(), and singlestep().
#define GCSsweepstring 2 |
Definition at line 19 of file lua-5.1.5/src/lgc.h.
Referenced by atomic(), entersweep(), luaC_fullgc(), luaS_resize(), singlestep(), and singlestep().
Definition at line 73 of file lua-5.1.5/src/lgc.h.
Referenced by luaC_checkupvalcolor(), luaC_linkupval(), propagatemark(), propagatemark(), propagatemark(), reallymarkobject(), reallymarkobject(), and reallymarkobject().
Definition at line 66 of file lua-5.1.5/src/lgc.h.
Referenced by genlink(), luaC_barrier_(), luaC_barrierback(), luaC_barrierback_(), luaC_barrierback_(), luaC_barrierf(), luaC_barrierproto_(), luaC_checkupvalcolor(), luaF_close(), markold(), pushclosure(), and remarkupvals().
#define isdead | ( | g, | |
v ) ((v)->gch.marked & otherwhite(g) & WHITEBITS) |
Definition at line 70 of file lua-5.1.5/src/lgc.h.
Referenced by internshrstr(), internshrstr(), internshrstr(), luaC_barrier_(), luaC_barrierback(), luaC_barrierback_(), luaC_barrierback_(), luaC_barrierf(), luaF_close(), luaF_findupval(), luaS_newlstr(), reallymarkobject(), sweep2old(), sweepgen(), and sweeplist().
Definition at line 67 of file lua-5.1.5/src/lgc.h.
Referenced by correctgraylist(), linkgclist_(), luaC_checkupvalcolor(), luaC_linkupval(), propagatemark(), propagatemark(), propagatemark(), remarkupvals(), remarkupvals(), remarkupvals(), and remarkupvals().
Definition at line 65 of file lua-5.1.5/src/lgc.h.
Referenced by adjust_varargs(), atomic(), atomic(), atomic(), atomic(), correctgraylist(), iscleared(), iscleared(), iscleared(), iscleared(), lua_pushcclosure(), luaC_barrier_(), luaC_barrierf(), luaC_separateudata(), luaE_newthread(), luaF_closeupval(), luaS_clearcache(), luaY_parser(), markold(), reallymarkobject(), remarkupvals(), separatetobefnz(), separatetobefnz(), separatetobefnz(), sweep2old(), sweepgen(), traverseproto(), and traverseproto().
#define KEYWEAKBIT 3 |
Definition at line 58 of file lua-5.1.5/src/lgc.h.
Referenced by cleartable(), and traversetable().
Definition at line 32 of file lua-5.1.5/src/lgc.h.
Referenced by luaC_checkfinalizer(), and separatetobefnz().
#define luaC_barrier | ( | L, | |
p, | |||
v ) |
Definition at line 86 of file lua-5.1.5/src/lgc.h.
Referenced by addk(), addk(), addk(), addk(), lua_copy(), lua_load(), lua_replace(), lua_setupvalue(), lua_setuservalue(), luaC_linkupval(), luaF_closeupval(), luaV_execute(), luaV_execute(), luaV_execute(), and moveto().
#define luaC_barriert | ( | L, | |
t, | |||
v ) |
Definition at line 89 of file lua-5.1.5/src/lgc.h.
Referenced by lua_rawset(), lua_rawseti(), luaV_execute(), luaV_settable(), and newkey().
#define luaC_checkGC | ( | L | ) |
Definition at line 80 of file lua-5.1.5/src/lgc.h.
Referenced by adjust_varargs(), close_func(), close_func(), close_func(), f_parser(), lua_concat(), lua_createtable(), lua_gc(), lua_gc(), lua_newthread(), lua_newuserdata(), lua_newuserdatauv(), lua_pushcclosure(), lua_pushfstring(), lua_pushlstring(), lua_pushstring(), lua_pushvfstring(), lua_tolstring(), luaD_call(), luaD_precall(), luaG_runerror(), luaV_execute(), and luaX_newstring().
#define luaC_objbarrier | ( | L, | |
p, | |||
o ) |
Definition at line 92 of file lua-5.1.5/src/lgc.h.
Referenced by addprototype(), addprototype(), addprototype(), f_parser(), indexupvalue(), LoadProtos(), loadProtos(), LoadString(), loadStringN(), lua_setfenv(), lua_setmetatable(), lua_setuservalue(), lua_upvaluejoin(), luaC_barrierproto_(), luaF_initupvals(), luaU_undump(), luaY_parser(), mainfunc(), mainfunc(), newupvalue(), newupvalue(), newupvalue(), open_func(), open_func(), pushclosure(), pushclosure(), registerlocalvar(), registerlocalvar(), registerlocalvar(), and registerlocalvar().
#define luaC_objbarriert | ( | L, | |
t, | |||
o ) { if (iswhite(obj2gco(o)) && isblack(obj2gco(t))) luaC_barrierback(L,t); } |
Definition at line 96 of file lua-5.1.5/src/lgc.h.
Referenced by lua_setmetatable().
Definition at line 77 of file lua-5.1.5/src/lgc.h.
Referenced by lua_newstate(), lua_newthread(), luaC_link(), luaC_newobj(), luaC_newobj(), luaF_findupval(), luaS_newudata(), newlstr(), sweepgen(), sweeplist(), sweeplist(), sweeplist(), and whitelist().
#define otherwhite | ( | g | ) | (g->currentwhite ^ WHITEBITS) |
Definition at line 69 of file lua-5.1.5/src/lgc.h.
Referenced by atomic(), atomic(), atomic(), atomic(), sweeplist(), sweeplist(), sweeplist(), and sweeplist().
Definition at line 36 of file lua-5.1.5/src/lgc.h.
Definition at line 33 of file lua-5.1.5/src/lgc.h.
Referenced by udata2finalize(), udata2finalize(), and udata2finalize().
Definition at line 27 of file lua-5.1.5/src/lgc.h.
Definition at line 35 of file lua-5.1.5/src/lgc.h.
Referenced by lua_newstate().
#define setbits | ( | x, | |
m ) ((x) |= (m)) |
Definition at line 28 of file lua-5.1.5/src/lgc.h.
#define SFIXEDBIT 6 |
Definition at line 61 of file lua-5.1.5/src/lgc.h.
Referenced by lua_newstate(), luaC_freeall(), and sweeplist().
Definition at line 37 of file lua-5.1.5/src/lgc.h.
Definition at line 34 of file lua-5.1.5/src/lgc.h.
Referenced by cleartable(), luaC_checkfinalizer(), luaC_runtilstate(), separatetobefnz(), and sweeplist().
#define testbits | ( | x, | |
m ) ((x) & (m)) |
Definition at line 29 of file lua-5.1.5/src/lgc.h.
Referenced by sweeplist().
#define valiswhite | ( | x | ) | (iscollectable(x) && iswhite(gcvalue(x))) |
Definition at line 75 of file lua-5.1.5/src/lgc.h.
Referenced by removeentry(), and traverseephemeron().
#define VALUEWEAKBIT 4 |
Definition at line 59 of file lua-5.1.5/src/lgc.h.
Referenced by cleartable(), and traversetable().
#define WHITE0BIT 0 |
Definition at line 54 of file lua-5.1.5/src/lgc.h.
Referenced by lua_newstate().
#define WHITE1BIT 1 |
Definition at line 55 of file lua-5.1.5/src/lgc.h.
Definition at line 62 of file lua-5.1.5/src/lgc.h.
Referenced by luaC_freeall(), luaC_freeallobjects(), and sweeplist().
Definition at line 674 of file lua-5.1.5/src/lgc.c.
References black2gray, G, Table::gclist, GCSfinalize, GCSpause, global_State::gcstate, global_State::grayagain, isblack, isdead, lua_assert, and obj2gco.
Definition at line 661 of file lua-5.1.5/src/lgc.c.
References G, GCObject::gch, GCSfinalize, GCSpause, GCSpropagate, global_State::gcstate, isblack, isdead, iswhite, lua_assert, LUA_TTABLE, makewhite, reallymarkobject(), and ttype.
Definition at line 477 of file lua-5.1.5/src/lgc.c.
Referenced by callallgcTM().
Definition at line 483 of file lua-5.1.5/src/lgc.c.
References bitmask, global_State::currentwhite, G, stringtable::hash, global_State::rootgc, SFIXEDBIT, stringtable::size, global_State::strt, sweepwholelist, and WHITEBITS.
Referenced by close_state().
Definition at line 635 of file lua-5.1.5/src/lgc.c.
References G, GCSfinalize, GCSpause, GCSpropagate, GCSsweep, GCSsweepstring, global_State::gcstate, global_State::gray, global_State::grayagain, lua_assert, markroot(), NULL, global_State::rootgc, setthreshold, singlestep(), global_State::sweepgc, global_State::sweepstrgc, and global_State::weak.
Referenced by growstrtab(), lua_gc(), lua_gc(), luaM_realloc_(), and tryagain().
Definition at line 685 of file lua-5.1.5/src/lgc.c.
References G, GCObject::gch, luaC_white, and global_State::rootgc.
Referenced by luaE_newthread(), luaF_newCclosure(), luaF_newLclosure(), luaF_newproto(), luaF_newupval(), and luaH_new().
Definition at line 694 of file lua-5.1.5/src/lgc.c.
References G, GCObject::gch, GCSfinalize, GCSpause, GCSpropagate, global_State::gcstate, gray2black, isgray, lua_assert, luaC_barrier, makewhite, obj2gco, global_State::rootgc, and UpVal::v.
Referenced by luaF_close().
Definition at line 128 of file lua-5.1.5/src/lgc.c.
References fasttm, G, GCObject::gch, gco2u, isfinalized, iswhite, global_State::mainthread, markfinalized, NULL, sizeudata, TM_GC, and global_State::tmudata.
Referenced by atomic(), and lua_close().
Definition at line 610 of file lua-5.1.5/src/lgc.c.