mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Move lightuserdata names to the end of the struct for better cache coherency
This commit is contained in:
parent
29d59ad40c
commit
f70376eb19
1 changed files with 2 additions and 1 deletions
|
@ -197,7 +197,6 @@ typedef struct global_State
|
||||||
struct Table* mt[LUA_T_COUNT]; // metatables for basic types
|
struct Table* mt[LUA_T_COUNT]; // metatables for basic types
|
||||||
TString* ttname[LUA_T_COUNT]; // names for basic types
|
TString* ttname[LUA_T_COUNT]; // names for basic types
|
||||||
TString* tmname[TM_N]; // array with tag-method names
|
TString* tmname[TM_N]; // array with tag-method names
|
||||||
TString* lightuserdataname[LUA_LUTAG_LIMIT]; // names for tagged lightuserdata
|
|
||||||
|
|
||||||
TValue pseudotemp; // storage for temporary values used in pseudo2addr
|
TValue pseudotemp; // storage for temporary values used in pseudo2addr
|
||||||
|
|
||||||
|
@ -215,6 +214,8 @@ typedef struct global_State
|
||||||
|
|
||||||
void (*udatagc[LUA_UTAG_LIMIT])(lua_State*, void*); // for each userdata tag, a gc callback to be called immediately before freeing memory
|
void (*udatagc[LUA_UTAG_LIMIT])(lua_State*, void*); // for each userdata tag, a gc callback to be called immediately before freeing memory
|
||||||
|
|
||||||
|
TString* lightuserdataname[LUA_LUTAG_LIMIT]; // names for tagged lightuserdata
|
||||||
|
|
||||||
GCStats gcstats;
|
GCStats gcstats;
|
||||||
|
|
||||||
#ifdef LUAI_GCMETRICS
|
#ifdef LUAI_GCMETRICS
|
||||||
|
|
Loading…
Add table
Reference in a new issue