Data Fields

# global_State Struct Reference

`#include <lua/lstate.h>`

Collaboration diagram for global_State:
[legend]

## Data Fields
stringtable | strt
lua_Alloc | frealloc
void * | ud
lu_byte | currentwhite
lu_byte | gcstate
int | sweepstrgc
GCObject * | rootgc
GCObject ** | sweepgc
GCObject * | gray
GCObject * | grayagain
GCObject * | weak
GCObject * | tmudata
Mbuffer | buff
lu_mem | GCthreshold
lu_mem | totalbytes
lu_mem | estimate
lu_mem | gcdept
int | gcpause
int | gcstepmul
lua_CFunction | panic
TValue | l_registry
struct lua_State * | mainthread
UpVal | uvhead
struct Table * | mt [(LUA_TTHREAD+1)]
TString * | tmname [TM_N]

## Detailed Description

Definition at line 68 of file lstate.h.

## Field Documentation

Mbuffer global_State::buff

Definition at line 81 of file lstate.h.

Referenced by checkSizes(), close_state(), and lua_newstate().

lu_byte global_State::currentwhite

Definition at line 72 of file lstate.h.

Referenced by atomic(), lua_newstate(), and luaC_freeall().

lu_mem global_State::estimate

Definition at line 84 of file lstate.h.

Referenced by atomic(), luaC_step(), and singlestep().

lua_Alloc global_State::frealloc

Definition at line 70 of file lstate.h.

Referenced by close_state(), lua_newstate(), and luaM_realloc_().

lu_mem global_State::gcdept

Definition at line 85 of file lstate.h.

Referenced by lua_newstate(), luaC_step(), and singlestep().

int global_State::gcpause

Definition at line 86 of file lstate.h.

Referenced by lua_gc(), and lua_newstate().

lu_byte global_State::gcstate

Definition at line 73 of file lstate.h.

Referenced by atomic(), lua_gc(), lua_newstate(), luaC_barrierback(), luaC_barrierf(), luaC_fullgc(), luaC_linkupval(), luaC_step(), markroot(), and singlestep().

int global_State::gcstepmul

Definition at line 87 of file lstate.h.

Referenced by lua_gc(), lua_newstate(), and luaC_step().

lu_mem global_State::GCthreshold

Definition at line 82 of file lstate.h.

Referenced by f_luaopen(), GCTM(), lua_gc(), lua_newstate(), and luaC_step().

GCObject* global_State::gray

Definition at line 77 of file lstate.h.

Referenced by atomic(), lua_newstate(), luaC_fullgc(), markroot(), propagateall(), propagatemark(), reallymarkobject(), and singlestep().

GCObject* global_State::grayagain

Definition at line 78 of file lstate.h.

Referenced by atomic(), lua_newstate(), luaC_barrierback(), luaC_fullgc(), markroot(), and propagatemark().

TValue global_State::l_registry

Definition at line 89 of file lstate.h.

struct lua_State* global_State::mainthread

Definition at line 90 of file lstate.h.

Referenced by atomic(), GCTM(), lua_newstate(), luaC_separateudata(), and markroot().

struct Table* global_State::mt[(LUA_TTHREAD+1)]

Definition at line 92 of file lstate.h.

Referenced by lua_newstate(), and markmt().

lua_CFunction global_State::panic

Definition at line 88 of file lstate.h.

Referenced by lua_newstate().

GCObject* global_State::rootgc

Definition at line 75 of file lstate.h.

Referenced by atomic(), close_state(), lua_newstate(), luaC_freeall(), luaC_fullgc(), luaC_link(), luaC_linkupval(), and sweeplist().

stringtable global_State::strt

Definition at line 69 of file lstate.h.

Referenced by checkSizes(), close_state(), lua_newstate(), luaC_freeall(), and singlestep().

GCObject** global_State::sweepgc

Definition at line 76 of file lstate.h.

Referenced by atomic(), lua_newstate(), luaC_fullgc(), and singlestep().

int global_State::sweepstrgc

Definition at line 74 of file lstate.h.

Referenced by atomic(), lua_newstate(), luaC_fullgc(), and singlestep().

TString* global_State::tmname[TM_N]

Definition at line 93 of file lstate.h.

GCObject* global_State::tmudata

Definition at line 80 of file lstate.h.

Referenced by GCTM(), lua_newstate(), luaC_separateudata(), marktmu(), and singlestep().

lu_mem global_State::totalbytes

Definition at line 83 of file lstate.h.

Referenced by atomic(), close_state(), f_luaopen(), GCTM(), lua_gc(), lua_newstate(), luaC_step(), luaM_realloc_(), and singlestep().

void* global_State::ud

Definition at line 71 of file lstate.h.

Referenced by close_state(), lua_newstate(), and luaM_realloc_().

UpVal global_State::uvhead

Definition at line 91 of file lstate.h.

Referenced by lua_newstate(), luaF_findupval(), and remarkupvals().

GCObject* global_State::weak

Definition at line 79 of file lstate.h.

Referenced by atomic(), lua_newstate(), luaC_fullgc(), markroot(), and traversetable().

The documentation for this struct was generated from the following file:

- lua/lstate.h