aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lgc.c b/lgc.c
index 87ec40c9..15338987 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.157 2002/11/13 11:49:19 roberto Exp roberto $ 2** $Id: lgc.c,v 1.158 2002/11/14 11:51:50 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -404,8 +404,8 @@ static void do1gcTM (lua_State *L, Udata *udata) {
404 404
405 405
406static void callGCTM (lua_State *L) { 406static void callGCTM (lua_State *L) {
407 int oldah = allowhook(L); 407 lu_byte oldah = L->allowhook;
408 setallowhook(L, 0); /* stop debug hooks during GC tag methods */ 408 L->allowhook = 0; /* stop debug hooks during GC tag methods */
409 L->top++; /* reserve space to keep udata while runs its gc method */ 409 L->top++; /* reserve space to keep udata while runs its gc method */
410 while (G(L)->tmudata != NULL) { 410 while (G(L)->tmudata != NULL) {
411 GCObject *o = G(L)->tmudata; 411 GCObject *o = G(L)->tmudata;
@@ -419,7 +419,7 @@ static void callGCTM (lua_State *L) {
419 do1gcTM(L, udata); 419 do1gcTM(L, udata);
420 } 420 }
421 L->top--; 421 L->top--;
422 setallowhook(L, oldah); /* restore hooks */ 422 L->allowhook = oldah; /* restore hooks */
423} 423}
424 424
425 425