<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/lstate.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>2026-04-23T21:00:23+00:00</updated>
<entry>
<title>new macro 'setnilvalue2s'</title>
<updated>2026-04-23T21:00:23+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2026-04-23T21:00:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ae23e726018bd31a25c1279600328d90207ec81c'/>
<id>urn:sha1:ae23e726018bd31a25c1279600328d90207ec81c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More effort in avoiding errors in finalizers</title>
<updated>2026-01-11T18:36:03+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2026-01-11T18:36:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=2a7cf4f319fc276f4554a8f6364e6b1ba4eb2ded'/>
<id>urn:sha1:2a7cf4f319fc276f4554a8f6364e6b1ba4eb2ded</id>
<content type='text'>
Before calling a finalizer, Lua not only checks stack limits, but
actually ensures that a minimum number of slots are already allocated
for the call. (If it cannot ensure that, it postpones the finalizer.)
That avoids finalizers not running due to memory errors that the
programmer cannot control.
</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>New function 'resetCI'</title>
<updated>2025-03-17T17:32:08+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-17T17:32:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=921832be8d7f687d2cd891654c8680c6e9d6584c'/>
<id>urn:sha1:921832be8d7f687d2cd891654c8680c6e9d6584c</id>
<content type='text'>
New function 'resetCI' resets the CallInfo list of a thread, ensuring
a proper state when creating a new thread, closing a thread, or
closing a state, so that we can run code after that. (When closing a
thread, we need to run its __close metamethods; when closing a
state, we need to run its __close metamethods and its finalizers.)
</content>
</entry>
<entry>
<title>'luaD_seterrorobj' should not raise errors</title>
<updated>2025-03-12T18:51:16+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-12T18:51:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=c931d86e98da320c71da70c16d44aa28e9755520'/>
<id>urn:sha1:c931d86e98da320c71da70c16d44aa28e9755520</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>Main thread is a regular field of global_State</title>
<updated>2025-01-31T16:51:38+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-01-31T16:51:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=fa1382b5cd504bdfc5fc3f5c447ed09a4c9804fd'/>
<id>urn:sha1:fa1382b5cd504bdfc5fc3f5c447ed09a4c9804fd</id>
<content type='text'>
They were already allocated as a single block, so there is no need
for the global_State to point to its main thread.
</content>
</entry>
<entry>
<title>New type 'TStatus' for thread status/error codes</title>
<updated>2025-01-30T14:41:39+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-01-30T14:41:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d1e677c52be3b107a7a29fdc482158f6d9251e79'/>
<id>urn:sha1:d1e677c52be3b107a7a29fdc482158f6d9251e79</id>
<content type='text'>
</content>
</entry>
<entry>
<title>'objsize' returns 'l_mem'</title>
<updated>2024-11-15T15:04:53+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-11-15T15:04:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=a4762b6ffe74f5878882ef238d37bfa92d90e418'/>
<id>urn:sha1:a4762b6ffe74f5878882ef238d37bfa92d90e418</id>
<content type='text'>
Sums of size_t may not fit in a size_t.
</content>
</entry>
<entry>
<title>Small bug in 'luaE_luaE_statesize'</title>
<updated>2024-10-21T18:30:35+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-10-21T18:30:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9b01da97e3a8f2df9acbd3b86af50e4040e9d914'/>
<id>urn:sha1:9b01da97e3a8f2df9acbd3b86af50e4040e9d914</id>
<content type='text'>
Plus, function was renamed to 'luaE_threadsize'.
</content>
</entry>
<entry>
<title>'objsize' broke in smaller pieces</title>
<updated>2024-09-30T17:01:42+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-09-30T17:01:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=3d54b42d59bcc1b31a369f3497ac22745d63cae6'/>
<id>urn:sha1:3d54b42d59bcc1b31a369f3497ac22745d63cae6</id>
<content type='text'>
</content>
</entry>
</feed>
