Searched refs:G (Results 1 – 14 of 14) sorted by relevance
| /redis-3.2.3/deps/lua/src/ |
| H A D | lstring.c | 26 if (G(L)->gcstate == GCSsweepstring) in luaS_resize() 29 tb = &G(L)->strt; in luaS_resize() 59 ts->tsv.marked = luaC_white(G(L)); in newlstr() 64 tb = &G(L)->strt; in newlstr() 82 for (o = G(L)->strt.hash[lmod(h, G(L)->strt.size)]; in luaS_newlstr() 88 if (isdead(G(L), o)) changewhite(o); in luaS_newlstr() 101 u->uv.marked = luaC_white(G(L)); /* is not finalized */ in luaS_newudata() 107 u->uv.next = G(L)->mainthread->next; in luaS_newudata() 108 G(L)->mainthread->next = obj2gco(u); in luaS_newudata()
|
| H A D | ltm.c | 40 G(L)->tmname[i] = luaS_new(L, luaT_eventname[i]); in luaT_init() 41 luaS_fix(G(L)->tmname[i]); /* never collect these names */ in luaT_init() 71 mt = G(L)->mt[ttype(o)]; in luaT_gettmbyobj() 73 return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject); in luaT_gettmbyobj()
|
| H A D | lstate.c | 71 global_State *g = G(L); in f_luaopen() 85 G(L) = g; in preinit_state() 106 global_State *g = G(L); in close_state() 111 luaM_freearray(L, G(L)->strt.hash, G(L)->strt.size, TString *); in close_state() 122 preinit_state(L1, G(L)); in luaE_newthread() 200 L = G(L)->mainthread; /* only the main thread can be closed */ in lua_close() 210 lua_assert(G(L)->tmudata == NULL); in lua_close()
|
| H A D | lgc.c | 129 global_State *g = G(L); in luaC_separateudata() 390 G(L)->strt.nuse--; in freeobj() 409 global_State *g = G(L); in sweeplist() 432 global_State *g = G(L); in checkSizes() 446 global_State *g = G(L); in GCTM() 478 while (G(L)->tmudata) in luaC_callGCTM() 484 global_State *g = G(L); in luaC_freeall() 502 global_State *g = G(L); in markroot() 526 global_State *g = G(L); in atomic() 557 global_State *g = G(L); in singlestep() [all …]
|
| H A D | lobject.h | 131 checkliveness(G(L),i_o); } 136 checkliveness(G(L),i_o); } 141 checkliveness(G(L),i_o); } 146 checkliveness(G(L),i_o); } 151 checkliveness(G(L),i_o); } 156 checkliveness(G(L),i_o); } 164 checkliveness(G(L),o1); }
|
| H A D | lapi.c | 115 api_check(from, G(from) == G(to)); in lua_xmove() 133 old = G(L)->panic; in lua_atpanic() 134 G(L)->panic = panicf; in lua_atpanic() 524 return (G(L)->mainthread == L); in lua_pushthread() 601 mt = G(L)->mt[ttype(obj)]; in lua_getmetatable() 724 G(L)->mt[ttype(obj)] = mt; in lua_setmetatable() 903 g = G(L); in lua_gc() 1010 if (ud) *ud = G(L)->ud; in lua_getallocf() 1011 f = G(L)->frealloc; in lua_getallocf() 1019 G(L)->ud = ud; in lua_setallocf() [all …]
|
| H A D | lstate.h | 25 #define registry(L) (&G(L)->l_registry) 130 #define G(L) (L->l_G) macro
|
| H A D | lgc.h | 82 if (G(L)->totalbytes >= G(L)->GCthreshold) \
|
| H A D | ltm.h | 44 #define fasttm(l,et,e) gfasttm(G(l), et, e)
|
| H A D | lmem.c | 77 global_State *g = G(L); in luaM_realloc_()
|
| H A D | lfunc.c | 54 global_State *g = G(L); in luaF_findupval() 98 global_State *g = G(L); in luaF_close()
|
| H A D | ldo.c | 101 if (G(L)->panic) { in luaD_throw() 104 G(L)->panic(L); in luaD_throw()
|
| H A D | lvm.c | 302 buffer = luaZ_openspace(L, &G(L)->buff, tl); in luaV_concat()
|
| /redis-3.2.3/deps/lua/test/ |
| H A D | readonly.lua | 5 local G=getfenv() 6 setmetatable(g,{__index=G,__newindex=f})
|