aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-13 15:51:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-13 15:51:20 -0300
commita3fbf5f5fdf438cdfd7173b3e541d8aafc99b3f8 (patch)
tree493f4413e3ecdca91c8f87bc467dffeedb5695e7
parent7fae1c17b1f01c2fd719a0f195a979e33f990ee8 (diff)
downloadlua-a3fbf5f5fdf438cdfd7173b3e541d8aafc99b3f8.tar.gz
lua-a3fbf5f5fdf438cdfd7173b3e541d8aafc99b3f8.tar.bz2
lua-a3fbf5f5fdf438cdfd7173b3e541d8aafc99b3f8.zip
details
-rw-r--r--lgc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lgc.c b/lgc.c
index d3c9490c..9a00e1d0 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.102 2001/06/08 19:01:38 roberto Exp roberto $ 2** $Id: lgc.c,v 1.103 2001/06/12 18:43:13 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*/
@@ -360,9 +360,6 @@ void luaC_collect (lua_State *L, int all) {
360 collecttable(L); 360 collecttable(L);
361 collectproto(L); 361 collectproto(L);
362 collectclosure(L); 362 collectclosure(L);
363 checkMbuffer(L);
364 G(L)->GCthreshold = 2*G(L)->nblocks; /* set new threshold */
365 luaC_callgcTMudata(L);
366} 363}
367 364
368 365
@@ -370,6 +367,9 @@ void luaC_collectgarbage (lua_State *L) {
370 markall(L); 367 markall(L);
371 invalidatetables(G(L)); 368 invalidatetables(G(L));
372 luaC_collect(L, 0); 369 luaC_collect(L, 0);
370 checkMbuffer(L);
371 G(L)->GCthreshold = 2*G(L)->nblocks; /* set new threshold */
372 luaC_callgcTMudata(L);
373 callgcTM(L, &luaO_nilobject); 373 callgcTM(L, &luaO_nilobject);
374} 374}
375 375