GC local pause configurable

This commit is contained in:
Roberto Ierusalimschy
2013-09-13 13:21:52 -03:00
parent 06156e7575
commit 686e57cf9c
6 changed files with 41 additions and 35 deletions

7
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 2.188 2013/08/27 18:53:35 roberto Exp roberto $
** $Id: lapi.c,v 2.189 2013/09/11 20:15:31 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -1086,6 +1086,11 @@ LUA_API int lua_gc (lua_State *L, int what, int data) {
g->gcpause = data;
break;
}
case LUA_GCSETLOCALPAUSE: {
res = g->gclocalpause;
g->gclocalpause = data;
break;
}
case LUA_GCSETSTEPMUL: {
res = g->gcstepmul;
g->gcstepmul = data;