'strcache' elements as arrays of 1 element hints that cache can

be n-way (instead of direct mapped)
This commit is contained in:
Roberto Ierusalimschy
2015-06-01 13:34:37 -03:00
parent 02aed045de
commit 6645bb2df4
2 changed files with 11 additions and 11 deletions

View File

@@ -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;