<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/lobject.h, 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-08-17T18:59:28+00:00</updated>
<entry>
<title>More disciplined use of 'getstr' and 'tsslen'</title>
<updated>2023-08-17T18:59:28+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-08-17T18:59:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9b4f39ab14fb2e55345c3d23537d129dac23b091'/>
<id>urn:sha1:9b4f39ab14fb2e55345c3d23537d129dac23b091</id>
<content type='text'>
We may want to add other string variants in the future; this change
documents better where the code may need to handle those variants.
</content>
</entry>
<entry>
<title>Removed unused field 'UpVal.tbc'</title>
<updated>2022-11-08T13:15:10+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-11-08T13:15:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=be908a7d4d8130264ad67c5789169769f824c5d1'/>
<id>urn:sha1:be908a7d4d8130264ad67c5789169769f824c5d1</id>
<content type='text'>
</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>Avoid taking the address of a 'TValue' field</title>
<updated>2021-10-11T16:52:26+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-10-11T16:52:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0e5071b5fbcc244d9f8c4bae82e327ad59bccc3f'/>
<id>urn:sha1:0e5071b5fbcc244d9f8c4bae82e327ad59bccc3f</id>
<content type='text'>
That structure can be packed in the future.
</content>
</entry>
<entry>
<title>Details</title>
<updated>2021-03-29T14:47:12+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-03-29T14:47:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=bef250eb8d44ba58fa04f82df7550a79b068d2d0'/>
<id>urn:sha1:bef250eb8d44ba58fa04f82df7550a79b068d2d0</id>
<content type='text'>
Comments and small improvements in the manual.
</content>
</entry>
<entry>
<title>New implementation for 'tbclist'</title>
<updated>2021-03-10T13:27:19+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-03-10T13:27:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=81c6021fb40a254d9a586b0cb53453bba8973d80'/>
<id>urn:sha1:81c6021fb40a254d9a586b0cb53453bba8973d80</id>
<content type='text'>
- Fixes a bug, by removing dummy nodes together with the node
itself. (The previous implementation could leave dummy nodes in frames
which otherwise had no tbc variables, and therefore would not close
variables; that could leave 'tbclist' pointing higher than 'top', which
could dangle if the stack shrank.)

- Computes MAXDELTA based on the type of delta, to ease changing its
type if needed.

- Instead of 'isdummy', uses 'delta==0' to signal dummy nodes. (Dummy
nodes always have MAXDELTA for their real delta.)
</content>
</entry>
<entry>
<title>New implementation for to-be-closed variables</title>
<updated>2021-02-09T17:00:05+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-02-09T17:00:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=4e47f81188d37e29027158b76271d02a781242e2'/>
<id>urn:sha1:4e47f81188d37e29027158b76271d02a781242e2</id>
<content type='text'>
To-be-closed variables are linked in their own list, embedded into the
stack elements. (Due to alignment, this information does not change
the size of the stack elements in most architectures.)  This new list
does not produce garbage and avoids memory errors when creating tbc
variables.
</content>
</entry>
<entry>
<title>Cleaner definition for macro 'ttisclosure'</title>
<updated>2020-12-16T14:02:40+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-12-16T14:02:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e1ceea56740ea119e4ead68c4389407024da523d'/>
<id>urn:sha1:e1ceea56740ea119e4ead68c4389407024da523d</id>
<content type='text'>
</content>
</entry>
</feed>
