<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/ldo.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-22T17:42:55+00:00</updated>
<entry>
<title>Bug: GC checks stack space before running finalizer</title>
<updated>2026-07-22T17:42:55+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2026-07-22T17:42:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=8511e90b7df5daf139aba290b9c9c1595927e7b3'/>
<id>urn:sha1:8511e90b7df5daf139aba290b9c9c1595927e7b3</id>
<content type='text'>
If some stack does not have a minimum available space, the GC defers
calling a finalizer until the next cycle. That avoids errors while
running a finalizer that the programmer cannot control.
</content>
</entry>
<entry>
<title>Bug: 'luaD_seterrorobj' should not raise errors</title>
<updated>2025-03-12T19:01:03+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-12T19:01:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=25da574fcbb68bf507431a6091ab73ac434c9428'/>
<id>urn:sha1:25da574fcbb68bf507431a6091ab73ac434c9428</id>
<content type='text'>
This function can be called unprotected, so it should not raise any
kind of errors. (It could raise a memory-allocation error when creating
a message).
</content>
</entry>
<entry>
<title>Bug: Missing error status in panic function</title>
<updated>2025-01-16T19:25:11+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-01-16T19:25:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=f5e55be2a0ce64066c1b0554675633b92c91fafb'/>
<id>urn:sha1:f5e55be2a0ce64066c1b0554675633b92c91fafb</id>
<content type='text'>
'luaD_throw' may call 'luaE_resetthread', which returns an error code
but clears 'L-&gt;status'; so, 'luaD_throw' should set that status again.
</content>
</entry>
<entry>
<title>Bug: Yielding in a hook stops in the wrong instruction</title>
<updated>2024-01-11T16:44:16+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-01-11T16:44:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e288c5a91883793d14ed9e9d93464f6ee0b08915'/>
<id>urn:sha1:e288c5a91883793d14ed9e9d93464f6ee0b08915</id>
<content type='text'>
Yielding in a hook must decrease the program counter, because it already
counted an instruction that, in the end, was not executed. However,
that decrement should be done only when about to restart the thread.
Otherwise, inspecting the thread with the debug library shows it one
instruction behind of where it really is.
</content>
</entry>
<entry>
<title>Several functions turned 'static'</title>
<updated>2023-05-22T17:47:54+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-05-22T17:47:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9be74ccc214eb6f4d9d0b9496fd973542c7377d9'/>
<id>urn:sha1:9be74ccc214eb6f4d9d0b9496fd973542c7377d9</id>
<content type='text'>
Several functions that were already being used only inside their
own file have been declared as 'static'.
</content>
</entry>
<entry>
<title>Corrected support for 16-bit systems</title>
<updated>2023-03-09T14:10:04+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-03-09T14:10:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=1de2f31694ddbc86b18e491c8aedc91791f512e2'/>
<id>urn:sha1:1de2f31694ddbc86b18e491c8aedc91791f512e2</id>
<content type='text'>
We still need access to a 16-bit system to correctly test
these changes.
</content>
</entry>
<entry>
<title>Stack reallocation done with a single realloc</title>
<updated>2022-10-31T18:06:20+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-10-31T18:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ee645472ebe153e2c6669c84a632297a8110bdb6'/>
<id>urn:sha1:ee645472ebe153e2c6669c84a632297a8110bdb6</id>
<content type='text'>
To avoid the need of both the old and the new stack addresses valid
at the same time, to correct the pointers to the stack, these pointers
are changed to offsets before the reallocation and then changed back
to pointers after the reallocation.
</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>More checks and documentation for uses of EXTRA_STACK</title>
<updated>2022-05-26T18:14:54+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-05-26T18:14:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d61b0c60287c38008d312ddd11724a15b1737f7b'/>
<id>urn:sha1:d61b0c60287c38008d312ddd11724a15b1737f7b</id>
<content type='text'>
</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>
</feed>
