aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-02-16 16:09:52 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-02-16 16:09:52 -0300
commit2aaf7394ad17180565423ce360d5faffb60f4e4f (patch)
tree32caa2d7b0079b4bc9b0ac392d216c5094a6433d /lstate.c
parentb3ce4505296253e6da1fa780c23e7ed012efc88e (diff)
downloadlua-2aaf7394ad17180565423ce360d5faffb60f4e4f.tar.gz
lua-2aaf7394ad17180565423ce360d5faffb60f4e4f.tar.bz2
lua-2aaf7394ad17180565423ce360d5faffb60f4e4f.zip
more and better tools (assertions & inspectors) to check incremental GC
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 13b15f6f..36e7d9c3 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $ 2** $Id: lstate.c,v 2.2 2003/12/12 18:29:34 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -200,7 +200,7 @@ LUA_API void lua_close (lua_State *L) {
200 lua_lock(L); 200 lua_lock(L);
201 L = G(L)->mainthread; /* only the main thread can be closed */ 201 L = G(L)->mainthread; /* only the main thread can be closed */
202 luaF_close(L, L->stack); /* close all upvalues for this thread */ 202 luaF_close(L, L->stack); /* close all upvalues for this thread */
203 luaC_separateudata(L); /* separate udata that have GC metamethods */ 203 luaC_separateudata(L, 1); /* separate udata that have GC metamethods */
204 L->errfunc = 0; /* no error function during GC metamethods */ 204 L->errfunc = 0; /* no error function during GC metamethods */
205 do { /* repeat until no more errors */ 205 do { /* repeat until no more errors */
206 L->ci = L->base_ci; 206 L->ci = L->base_ci;