aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-03 14:33:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-03 14:33:39 -0300
commit0c27de2e7bb93936e9a1ad84ebc1f4d99e845190 (patch)
tree7afd111020a182ba8b91e66d9d79ebf26d6e8876 /ltests.c
parentd25f7f9d78961543cbbcc0f793e37631030d003c (diff)
downloadlua-0c27de2e7bb93936e9a1ad84ebc1f4d99e845190.tar.gz
lua-0c27de2e7bb93936e9a1ad84ebc1f4d99e845190.tar.bz2
lua-0c27de2e7bb93936e9a1ad84ebc1f4d99e845190.zip
no more 'finalize' phase in GC; finalizers are called along the
entire cycle
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index 9917d47e..3bc611b3 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.99 2010/04/30 18:37:14 roberto Exp roberto $ 2** $Id: ltests.c,v 2.100 2010/05/03 11:55:40 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -580,9 +580,9 @@ static int get_gccolor (lua_State *L) {
580 580
581static int gc_state (lua_State *L) { 581static int gc_state (lua_State *L) {
582 static const char *statenames[] = {"", "pause", "propagate", "atomic", 582 static const char *statenames[] = {"", "pause", "propagate", "atomic",
583 "sweepstring", "sweepudata", "sweep", "finalize"}; 583 "sweepstring", "sweepudata", "sweep"};
584 static const int states[] = {0, GCSpause, GCSpropagate, GCSatomic, 584 static const int states[] = {0, GCSpause, GCSpropagate, GCSatomic,
585 GCSsweepstring, GCSsweepudata, GCSsweep, GCSfinalize}; 585 GCSsweepstring, GCSsweepudata, GCSsweep};
586 int option = luaL_checkoption(L, 1, "", statenames); 586 int option = luaL_checkoption(L, 1, "", statenames);
587 if (option == 0) { 587 if (option == 0) {
588 lua_pushstring(L, statenames[G(L)->gcstate]); 588 lua_pushstring(L, statenames[G(L)->gcstate]);