diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-17 12:40:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-17 12:40:06 -0300 |
commit | 4c6dfc342b026a51bfe3e2d56b1032fb670a2577 (patch) | |
tree | fa73b9a56acbd6b5f75e13e9bc15c0f2a5eef8d4 /lgc.c | |
parent | 686e57cf9c61070ff961407e3304071e171542f4 (diff) | |
download | lua-4c6dfc342b026a51bfe3e2d56b1032fb670a2577.tar.gz lua-4c6dfc342b026a51bfe3e2d56b1032fb670a2577.tar.bz2 lua-4c6dfc342b026a51bfe3e2d56b1032fb670a2577.zip |
CallInfo lists shrinks together with their associated stacks
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.164 2013/09/11 14:56:15 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.165 2013/09/13 16:21:52 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 | */ |
@@ -496,7 +496,6 @@ static lu_mem traversestack (global_State *g, lua_State *th) { | |||
496 | } | 496 | } |
497 | else { | 497 | else { |
498 | CallInfo *ci; | 498 | CallInfo *ci; |
499 | luaE_freeCI(th); /* free extra CallInfo slots */ | ||
500 | for (ci = &th->base_ci; ci != th->ci; ci = ci->next) | 499 | for (ci = &th->base_ci; ci != th->ci; ci = ci->next) |
501 | n++; /* count call infos to compute size */ | 500 | n++; /* count call infos to compute size */ |
502 | /* should not change the stack during an emergency gc cycle */ | 501 | /* should not change the stack during an emergency gc cycle */ |