diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-07 15:45:11 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-07 15:45:11 -0300 |
commit | 925fe8a0f2a667c96c015ee74d1a702af9ea5507 (patch) | |
tree | bca1cb92e11218498f4c76f651f4a5fa1a8c87b5 /lstate.c | |
parent | 789e7acdea3ada96bd00b7aac6d82e805bfee85c (diff) | |
download | lua-925fe8a0f2a667c96c015ee74d1a702af9ea5507.tar.gz lua-925fe8a0f2a667c96c015ee74d1a702af9ea5507.tar.bz2 lua-925fe8a0f2a667c96c015ee74d1a702af9ea5507.zip |
First criteria for shifts minor<->major
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -368,8 +368,9 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud, unsigned int seed) { | |||
368 | setgcparam(g, gcpause, LUAI_GCPAUSE); | 368 | setgcparam(g, gcpause, LUAI_GCPAUSE); |
369 | setgcparam(g, gcstepmul, LUAI_GCMUL); | 369 | setgcparam(g, gcstepmul, LUAI_GCMUL); |
370 | g->gcstepsize = LUAI_GCSTEPSIZE; | 370 | g->gcstepsize = LUAI_GCSTEPSIZE; |
371 | setgcparam(g, genmajormul, LUAI_GENMAJORMUL); | ||
372 | setgcparam(g, genminormul, LUAI_GENMINORMUL); | 371 | setgcparam(g, genminormul, LUAI_GENMINORMUL); |
372 | setgcparam(g, minormajor, LUAI_MINORMAJOR); | ||
373 | setgcparam(g, majorminor, LUAI_MAJORMINOR); | ||
373 | for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL; | 374 | for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL; |
374 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) { | 375 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) { |
375 | /* memory allocation error: free partial state */ | 376 | /* memory allocation error: free partial state */ |