From 882174684147b2fbc3f3a740c463b199978d9286 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 31 May 2017 15:54:58 -0300 Subject: [PATCH] updated GC states in function 'T.gcstate' --- ltests.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ltests.c b/ltests.c index 93a84284..fc233c7f 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.216 2017/04/24 18:06:12 roberto Exp roberto $ +** $Id: ltests.c,v 2.217 2017/05/04 13:32:01 roberto Exp $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -734,10 +734,12 @@ static int gc_printobj (lua_State *L) { static int gc_state (lua_State *L) { - static const char *statenames[] = {"propagate", "atomic", "sweepallgc", - "sweepfinobj", "sweeptobefnz", "sweepend", "pause", ""}; - static const int states[] = {GCSpropagate, GCSenteratomic, GCSswpallgc, - GCSswpfinobj, GCSswptobefnz, GCSswpend, GCSpause, -1}; + static const char *statenames[] = { + "propagate", "atomic", "enteratomic", "sweepallgc", "sweepfinobj", + "sweeptobefnz", "sweepend", "callfin", "pause", ""}; + static const int states[] = { + GCSpropagate, GCSenteratomic, GCSatomic, GCSswpallgc, GCSswpfinobj, + GCSswptobefnz, GCSswpend, GCScallfin, GCSpause, -1}; int option = states[luaL_checkoption(L, 1, "", statenames)]; if (option == -1) { lua_pushstring(L, statenames[G(L)->gcstate]);