From 73ec04fcf3e3f7017786fbaf0a83291b22bec5c4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 12 Jun 2017 11:21:44 -0300 Subject: no more 'DEADKEY'. Table traversals do not need to consider dead keys; if the key is dead, it cannot be given to 'next'. Instead, we now use a 'table' tag without the collectable bit, which makes it a unique tag good enough to reserve space. --- lstate.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 9a3e778a..12dddf3b 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.141 2017/05/13 13:54:47 roberto Exp roberto $ +** $Id: lstate.h,v 2.142 2017/05/26 19:14:29 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -247,8 +247,7 @@ union GCUnion { /* macro to convert a Lua object into a GCObject */ -#define obj2gco(v) \ - check_exp(novariant((v)->tt) < LUA_TDEADKEY, (&(cast_u(v)->gc))) +#define obj2gco(v) (&(cast_u(v)->gc)) /* actual number of total bytes allocated */ -- cgit v1.2.3-55-g6feb