aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-30 11:22:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-30 11:22:23 -0300
commit0062db1e06ed6b744f6f46ba06f10d55d2db18e3 (patch)
tree91b19dbb14c8ac72b461e76f2219e320a48ba1a3
parent23001d860789860ef53fc86f1a2a4af63c44e03f (diff)
downloadlua-0062db1e06ed6b744f6f46ba06f10d55d2db18e3.tar.gz
lua-0062db1e06ed6b744f6f46ba06f10d55d2db18e3.tar.bz2
lua-0062db1e06ed6b744f6f46ba06f10d55d2db18e3.zip
default PAUSE should be 200 (differences may be corrected in
internal multiplers) + check for unbilt stack equal the one used by lgc.c
-rw-r--r--lstate.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lstate.c b/lstate.c
index f3fa821f..6bdd0fdb 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.82 2010/04/19 17:40:13 roberto Exp roberto $ 2** $Id: lstate.c,v 2.83 2010/04/29 17:35:10 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*/
@@ -26,7 +26,7 @@
26 26
27 27
28#if !defined(LUAI_GCPAUSE) 28#if !defined(LUAI_GCPAUSE)
29#define LUAI_GCPAUSE 162 /* 162% */ 29#define LUAI_GCPAUSE 200 /* 200% */
30#endif 30#endif
31 31
32#if !defined(LUAI_GCMUL) 32#if !defined(LUAI_GCMUL)
@@ -110,10 +110,10 @@ static void stack_init (lua_State *L1, lua_State *L) {
110 110
111 111
112static void freestack (lua_State *L) { 112static void freestack (lua_State *L) {
113 if (L->ci != NULL) { /* is there a 'ci' list? */ 113 if (L->stack == NULL)
114 L->ci = &L->base_ci; /* free the entire list */ 114 return; /* stack not completely built yet */
115 luaE_freeCI(L); 115 L->ci = &L->base_ci; /* free the entire 'ci' list */
116 } 116 luaE_freeCI(L);
117 luaM_freearray(L, L->stack, L->stacksize); /* free stack array */ 117 luaM_freearray(L, L->stack, L->stacksize); /* free stack array */
118} 118}
119 119