aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.h b/lgc.h
index e71743e9..bc63ab98 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.52 2011/10/03 17:54:25 roberto Exp roberto $ 2** $Id: lgc.h,v 2.53 2012/01/23 20:29:12 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*/
@@ -104,7 +104,7 @@
104 104
105 105
106#define luaC_condGC(L,c) \ 106#define luaC_condGC(L,c) \
107 {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} 107 {if (G(L)->GCdebt > 0 && G(L)->gcrunning) {c;}; condchangemem(L);}
108#define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) 108#define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);)
109 109
110 110