From 6645bb2df44d4fc6c7aea8347a559357b657f80a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 1 Jun 2015 13:34:37 -0300 Subject: 'strcache' elements as arrays of 1 element hints that cache can be n-way (instead of direct mapped) --- lstate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 5c9b0233..1763a4ec 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.120 2015/03/04 13:31:21 roberto Exp roberto $ +** $Id: lstate.h,v 2.121 2015/04/10 17:56:25 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -141,7 +141,7 @@ typedef struct global_State { TString *memerrmsg; /* memory-error message */ TString *tmname[TM_N]; /* array with tag-method names */ struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ - TString *strcache[STRCACHE_SIZE]; /* cache for strings in API */ + TString *strcache[STRCACHE_SIZE][1]; /* cache for strings in API */ } global_State; -- cgit v1.2.3-55-g6feb