aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lapi.c b/lapi.c
index a5e94507..eab12cac 100644
--- a/lapi.c
+++ b/lapi.c
@@ -681,6 +681,11 @@ static int auxgetstr (lua_State *L, const TValue *t, const char *k) {
681} 681}
682 682
683 683
684/*
685** The following function assumes that the registry cannot be a weak
686** table, so that en mergency collection while using the global table
687** cannot collect it.
688*/
684static void getGlobalTable (lua_State *L, TValue *gt) { 689static void getGlobalTable (lua_State *L, TValue *gt) {
685 Table *registry = hvalue(&G(L)->l_registry); 690 Table *registry = hvalue(&G(L)->l_registry);
686 lu_byte tag = luaH_getint(registry, LUA_RIDX_GLOBALS, gt); 691 lu_byte tag = luaH_getint(registry, LUA_RIDX_GLOBALS, gt);