aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-02 12:19:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-02 12:19:19 -0300
commit11126422d9006e835a00cb1cbe2290a6820a401d (patch)
tree3a14b05a52f30efa9077bf8dd2a9b5d477cb250e /lapi.c
parente54668b6961a610a1b83a78a11581e2e6cfc0c7e (diff)
downloadlua-11126422d9006e835a00cb1cbe2290a6820a401d.tar.gz
lua-11126422d9006e835a00cb1cbe2290a6820a401d.tar.bz2
lua-11126422d9006e835a00cb1cbe2290a6820a401d.zip
option to return GC to normal (incremental, non generational) mode
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 4a96b9a4..7a91185a 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.117 2010/03/26 20:58:11 roberto Exp roberto $ 2** $Id: lapi.c,v 2.118 2010/03/29 17:43:14 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -952,6 +952,10 @@ LUA_API int lua_gc (lua_State *L, int what, int data) {
952 g->gckind = KGC_GEN; 952 g->gckind = KGC_GEN;
953 break; 953 break;
954 } 954 }
955 case LUA_GCINC: { /* change collector to incremental mode */
956 g->gckind = KGC_NORMAL;
957 break;
958 }
955 default: res = -1; /* invalid option */ 959 default: res = -1; /* invalid option */
956 } 960 }
957 lua_unlock(L); 961 lua_unlock(L);