<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/lcorolib.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>2023-05-02T19:41:43+00:00</updated>
<entry>
<title>"Emergency" new version 5.4.6</title>
<updated>2023-05-02T19:41:43+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-05-02T19:41:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=6443185167c77adcc8552a3fee7edab7895db1a9'/>
<id>urn:sha1:6443185167c77adcc8552a3fee7edab7895db1a9</id>
<content type='text'>
'lua_resetthread' is back to its original signature, to avoid
incompatibilities in the ABI between releases of the same version.
New function 'lua_closethread' added with the "correct" signature.
</content>
</entry>
<entry>
<title>Bug: stack overflow with nesting of coroutine.close</title>
<updated>2022-10-25T19:44:06+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-10-25T19:44:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=1e64c1391f9a14115b5cc82066dbf545ae73ee27'/>
<id>urn:sha1:1e64c1391f9a14115b5cc82066dbf545ae73ee27</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bug: Wrong status in coroutine during reset</title>
<updated>2021-11-08T14:55:25+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-11-08T14:55:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=bfbff3703edae789fa5efa9bf174f8e7cff4ded8'/>
<id>urn:sha1:bfbff3703edae789fa5efa9bf174f8e7cff4ded8</id>
<content type='text'>
When closing variables during 'coroutine.close' or 'lua_resetthread',
the status of a coroutine must be set to LUA_OK; a coroutine should
not run with any other status. (See assertion in 'lua_callk'.)

After the reset, the status should be kept as normal, as any error
was already reported.
</content>
</entry>
<entry>
<title>Broadening the use of branch hints</title>
<updated>2021-02-24T14:14:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-02-24T14:14:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=59c88f846d1dcd901a4420651aedf27816618923'/>
<id>urn:sha1:59c88f846d1dcd901a4420651aedf27816618923</id>
<content type='text'>
More uses of macros 'likely'/'unlikely' (renamed to
'l_likely'/'l_unlikely'), both in range (extended to the
libraries) and in scope (extended to hooks, stack growth).
</content>
</entry>
<entry>
<title>Report last error in closing methods</title>
<updated>2020-12-22T13:54:25+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-12-22T13:54:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0ceada8da92135717d31a3954b5b89a954f9e71a'/>
<id>urn:sha1:0ceada8da92135717d31a3954b5b89a954f9e71a</id>
<content type='text'>
When there are multiple errors around closing methods, report the
last error instead of the original.
</content>
</entry>
<entry>
<title>Keep memory errors as memory errors</title>
<updated>2020-07-06T15:09:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-07-06T15:09:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b57574d6fb9071b2f8f261b32c9378ed72db7023'/>
<id>urn:sha1:b57574d6fb9071b2f8f261b32c9378ed72db7023</id>
<content type='text'>
Allow memory errors to be raised through the API (throwing the
error with the memory error message); error in external allocations
raises a memory error; memory errors in coroutines are re-raised
as memory errors.
</content>
</entry>
<entry>
<title>Fixed a warning and other minor issues</title>
<updated>2019-10-04T19:17:04+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-10-04T19:17:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=7bd1e53753de7176eb0b23f2bf19ad2235dec826'/>
<id>urn:sha1:7bd1e53753de7176eb0b23f2bf19ad2235dec826</id>
<content type='text'>
Fixed some minor issues from the feedback for 5.4-beta rc1.
</content>
</entry>
<entry>
<title>Multiple errors in '__toclose' report the first one</title>
<updated>2019-06-05T16:16:25+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-05T16:16:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b4d5dff8ec4f1c8a44db66d368e95d359b04aea7'/>
<id>urn:sha1:b4d5dff8ec4f1c8a44db66d368e95d359b04aea7</id>
<content type='text'>
When there are multiple errors when closing objects, the error
reported by the protected call is the first one, for two reasons:
First, other errors may be caused by this one;
second, the first error is handled in the original execution context,
and therefore has the full traceback.
</content>
</entry>
<entry>
<title>'coroutine.kill' renamed 'coroutine.close'</title>
<updated>2019-06-03T16:11:20+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-06-03T16:11:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=514d94274853e6f0dfd6bb2ffa2e1fc64db926dd'/>
<id>urn:sha1:514d94274853e6f0dfd6bb2ffa2e1fc64db926dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Test for dead coroutine moved to 'lua_resume'</title>
<updated>2019-05-09T14:32:20+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-05-09T14:32:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=3f253f116e8e292977a1bded964544fb35b3d1e3'/>
<id>urn:sha1:3f253f116e8e292977a1bded964544fb35b3d1e3</id>
<content type='text'>
The test for dead coroutines done in the 'coro' library was moved
to 'lua_resume', in the kernel, which already does other similar
tests.
</content>
</entry>
</feed>
