<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/testes/cstack.lua, 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-03-12T17:00:58+00:00</updated>
<entry>
<title>Removed copyright notice from 'testes/all.lua'</title>
<updated>2025-03-12T17:00:58+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-12T17:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ab66652b3270b95222dea134b5e47bb3afc434cc'/>
<id>urn:sha1:ab66652b3270b95222dea134b5e47bb3afc434cc</id>
<content type='text'>
All test files refer to the main copyright notice in 'lua.h'.
</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: C stack overflow with coroutines</title>
<updated>2021-11-03T18:04:18+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-11-03T18:04:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=74d99057a5146755e737c479850f87fd0e3b6868'/>
<id>urn:sha1:74d99057a5146755e737c479850f87fd0e3b6868</id>
<content type='text'>
'coroutine.resume' did not increment counter of C calls when
continuing execution after a protected error (that is,
while running 'precover').
</content>
</entry>
<entry>
<title>New test module 'tracegc'</title>
<updated>2021-03-01T16:54:29+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-03-01T16:54:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=5276973224066e591b0f1a79c3b091d395848ac4'/>
<id>urn:sha1:5276973224066e591b0f1a79c3b091d395848ac4</id>
<content type='text'>
New module easies the inclusion of GC tracing in individual test files.
</content>
</entry>
<entry>
<title>'coroutine.close'/'lua_resetthread' report original errors</title>
<updated>2020-12-18T14:22:42+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-12-18T14:22:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=409256b7849ec5ab3296cb0ab9eba3d65955d5ea'/>
<id>urn:sha1:409256b7849ec5ab3296cb0ab9eba3d65955d5ea</id>
<content type='text'>
Besides errors in closing methods, 'coroutine.close' and
'lua_resetthread' also consider the original error that stopped the
thread, if any.
</content>
</entry>
<entry>
<title>Avoid shrinking stacks to often</title>
<updated>2020-10-12T15:29:09+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-10-06T16:37:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9ecd446141f572252a57cb33d2bba6aa00d96a55'/>
<id>urn:sha1:9ecd446141f572252a57cb33d2bba6aa00d96a55</id>
<content type='text'>
Shrink a stack only when the final stack size can be at most 2/3 the
previous size with half of its entries empty. This commit also
improves the clarity of 'luaD_growstack'.
</content>
</entry>
<entry>
<title>Revision of stackless implementation</title>
<updated>2020-10-12T15:29:09+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-09-23T13:18:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=287b302acb8d925178e9edb800f0a8d18c7d35f6'/>
<id>urn:sha1:287b302acb8d925178e9edb800f0a8d18c7d35f6</id>
<content type='text'>
- more organized handling of 'nCcalls'
- comments
- deprecation of 'setcstacklimit'
</content>
</entry>
<entry>
<title>Back to a stackless implementation</title>
<updated>2020-10-12T15:29:09+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-09-21T13:31:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=5d8ce05b3f6fad79e37ed21c1076e47a322472c6'/>
<id>urn:sha1:5d8ce05b3f6fad79e37ed21c1076e47a322472c6</id>
<content type='text'>
A "with stack" implementation gains too little in performance to be
worth all the noise from C-stack overflows.

This commit is almost a sketch, to test performance. There are several
pending stuff:

- review control of C-stack overflow and error messages;
- what to do with setcstacklimit;
- review comments;
- review unroll of Lua calls.
</content>
</entry>
<entry>
<title>Fixed bug: wrong stack limit when entering a coroutine</title>
<updated>2020-07-13T16:39:02+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-07-13T16:39:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e1d8770f12542d34a3e32b825c95b93f8a341ee1'/>
<id>urn:sha1:e1d8770f12542d34a3e32b825c95b93f8a341ee1</id>
<content type='text'>
When entering a coroutine, the computation of nCcalls added 'from-&gt;nci'
to correct for preallocated CallInfos, but 'nci' includes also the
Callinfos already used.
</content>
</entry>
<entry>
<title>C-Stack test does not assume minimum of 400 slots</title>
<updated>2020-05-04T17:17:15+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-05-04T17:17:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9a6f47f0edfded799f7cb6fd719bb0071b326100'/>
<id>urn:sha1:9a6f47f0edfded799f7cb6fd719bb0071b326100</id>
<content type='text'>
</content>
</entry>
</feed>
