summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index 633e4ab6..dcfab01f 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.26 2005/03/18 18:02:04 roberto Exp roberto $ 2** $Id: lstate.c,v 2.27 2005/03/18 18:55:45 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -170,8 +170,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
170 g->weak = NULL; 170 g->weak = NULL;
171 g->tmudata = NULL; 171 g->tmudata = NULL;
172 g->totalbytes = sizeof(LG); 172 g->totalbytes = sizeof(LG);
173 g->gcpace = 200; /* 200% (wait memory to double before next collection) */ 173 g->gcpause = LUAI_GCPAUSE;
174 g->gcstepmul = 200; /* GC runs `twice the speed' of memory allocation */ 174 g->gcstepmul = LUAI_GCMUL;
175 g->gcdept = 0; 175 g->gcdept = 0;
176 if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { 176 if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) {
177 /* memory allocation error: free partial state */ 177 /* memory allocation error: free partial state */