<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/lcorolib.c, branch v5.5.1</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.5.1</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.5.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2025-12-01T13:25:44+00:00</updated>
<entry>
<title>In luaB_close, running coroutines do not go to default</title>
<updated>2025-12-01T13:25:44+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-12-01T13:25:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=985ef32248f17ae4ca2d4e83e5e39e15393bb2f6'/>
<id>urn:sha1:985ef32248f17ae4ca2d4e83e5e39e15393bb2f6</id>
<content type='text'>
This should had been corrected in commit fd897027f1.
</content>
</entry>
<entry>
<title>The main thread cannot be closed</title>
<updated>2025-06-13T17:08:38+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-06-13T17:08:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e657a48ea5698bbd9982d878eb65e6615ec94f7e'/>
<id>urn:sha1:e657a48ea5698bbd9982d878eb65e6615ec94f7e</id>
<content type='text'>
No thread started with pcall (instead of resume) can be closed,
because coroutine.close would not respect the expected number of
results from the protected call.
</content>
</entry>
<entry>
<title>A coroutine can close itself</title>
<updated>2025-06-12T14:15:09+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-06-12T14:15:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=fd897027f19288ce2cb0249cb8c1818e2f3f1c4c'/>
<id>urn:sha1:fd897027f19288ce2cb0249cb8c1818e2f3f1c4c</id>
<content type='text'>
A call to close itself will close all its to-be-closed variables and
return to the resume that (re)started the coroutine.
</content>
</entry>
<entry>
<title>llimits.h being used by all Lua code</title>
<updated>2024-06-20T17:46:06+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-06-20T17:46:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=a08d82eb132bfd9db5b91e0d5ebcb81d7b26dcd0'/>
<id>urn:sha1:a08d82eb132bfd9db5b91e0d5ebcb81d7b26dcd0</id>
<content type='text'>
The definitions in llimits.h are useful not only for the core. That
header only defines types and '#define's, so libs and core still do
not share any real code/data.
</content>
</entry>
<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>
</feed>
