<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/lapi.c, branch v5.4.9</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.4.9</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.4.9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2026-07-24T14:16:38+00:00</updated>
<entry>
<title>Bug: Loading a binary chunk does not run the GC</title>
<updated>2026-07-24T14:16:38+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2026-07-24T14:16:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b18086ea3422ac89d1f7709dd7a37589040e233a'/>
<id>urn:sha1:b18086ea3422ac89d1f7709dd7a37589040e233a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bug: Wrong limit for local variables in 16-bit systems</title>
<updated>2024-09-10T14:34:42+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-09-10T14:34:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9f0c0fe0de64bc41efea73a2da881ff0a1036a03'/>
<id>urn:sha1:9f0c0fe0de64bc41efea73a2da881ff0a1036a03</id>
<content type='text'>
USHRT_MAX does not fit in an 'int' in 16-bit systems.
</content>
</entry>
<entry>
<title>More disciplined use of 'getstr' and 'tsslen'</title>
<updated>2023-08-17T18:59:28+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-08-17T18:59:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9b4f39ab14fb2e55345c3d23537d129dac23b091'/>
<id>urn:sha1:9b4f39ab14fb2e55345c3d23537d129dac23b091</id>
<content type='text'>
We may want to add other string variants in the future; this change
documents better where the code may need to handle those variants.
</content>
</entry>
<entry>
<title>Stack indices changed to union's</title>
<updated>2022-10-29T15:06:37+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-10-29T15:06:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=413a393e6222482f46599e138bebac162610a572'/>
<id>urn:sha1:413a393e6222482f46599e138bebac162610a572</id>
<content type='text'>
That will allow to change pointers to offsets while reallocating
the stack.
</content>
</entry>
<entry>
<title>Bug: 'lua_settop' may use an invalid pointer to stack</title>
<updated>2022-05-25T20:41:39+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-05-25T20:41:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=196bb94d66e727e0aec053a0276c3ad701500762'/>
<id>urn:sha1:196bb94d66e727e0aec053a0276c3ad701500762</id>
<content type='text'>
</content>
</entry>
<entry>
<title>'lua_checkstack' doesn't need to check stack overflow</title>
<updated>2022-05-23T13:38:03+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-05-23T13:38:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=4a00f61276a9a38b0427fbae3dbbd86dfb5a0749'/>
<id>urn:sha1:4a00f61276a9a38b0427fbae3dbbd86dfb5a0749</id>
<content type='text'>
'luaD_growstack' already checks that. This commit also fixes an
internal bug in 'luaD_growstack': a large 'n' could cause an arithmetic
overflow when computing 'needed'.
</content>
</entry>
<entry>
<title>Details</title>
<updated>2021-12-21T10:39:25+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-12-21T10:39:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=86ec152433baf8daf39f03a59c6842cbe33a179d'/>
<id>urn:sha1:86ec152433baf8daf39f03a59c6842cbe33a179d</id>
<content type='text'>
correction in macro for hard tests + type in comment
</content>
</entry>
<entry>
<title>Bug: GC is not reentrant</title>
<updated>2021-12-13T13:41:17+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-12-13T13:41:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0bfc572e51d9035a615ef6e9523f736c9ffa8e57'/>
<id>urn:sha1:0bfc572e51d9035a615ef6e9523f736c9ffa8e57</id>
<content type='text'>
As the GC is not reentrant, finalizers should not be able to invoke it.
</content>
</entry>
<entry>
<title>Using 'inline' in some functions</title>
<updated>2021-09-15T14:18:41+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-09-15T14:18:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=2ff34717227b8046b0fdcb96206f11f5e888664e'/>
<id>urn:sha1:2ff34717227b8046b0fdcb96206f11f5e888664e</id>
<content type='text'>
According to ISO C, "making a function an inline function suggests that
calls to the function be as fast as possible." (Not available in C89.)
</content>
</entry>
<entry>
<title>'index2value' more robust</title>
<updated>2021-05-24T19:48:43+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-05-24T19:48:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=fc6c74f1004b5f67d0503633ddb74174a3c8d6ad'/>
<id>urn:sha1:fc6c74f1004b5f67d0503633ddb74174a3c8d6ad</id>
<content type='text'>
'index2value' accepts pseudo-indices also when called from a Lua
function, through a hook.
</content>
</entry>
</feed>
