aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lgc.h b/lgc.h
index 386239fe..abceca78 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.19 2008/06/26 19:42:45 roberto Exp roberto $ 2** $Id: lgc.h,v 2.20 2009/04/28 19:04:36 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*/
@@ -78,10 +78,8 @@
78#define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) 78#define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS)
79 79
80 80
81#define luaC_checkGC(L) { \ 81#define luaC_checkGC(L) \
82 condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1)); \ 82 {condmovestack(L); if (G(L)->totalbytes >= G(L)->GCthreshold) luaC_step(L);}
83 if (G(L)->totalbytes >= G(L)->GCthreshold) \
84 luaC_step(L); }
85 83
86 84
87#define luaC_barrier(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \ 85#define luaC_barrier(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \