aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-01-19 10:03:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-01-19 10:03:13 -0300
commit6ccd24eff58340c00db2877c4558a63c6b859442 (patch)
tree4c8f51657d8d1f4921846a23ba4b475db49fd837 /manual
parentd0f34d91373fa265d4445e456e4a10ce206c1559 (diff)
downloadlua-6ccd24eff58340c00db2877c4558a63c6b859442.tar.gz
lua-6ccd24eff58340c00db2877c4558a63c6b859442.tar.bz2
lua-6ccd24eff58340c00db2877c4558a63c6b859442.zip
Simpler handling of errors when creating tbc variables
New field 'lua_State.ptbc' keeps to-be-closed variable until its upvalue is created, so that it can be closed in case of a memory-allocation error.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of4
1 files changed, 0 insertions, 4 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 2fe332a4..89069281 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -4358,10 +4358,6 @@ nor modified before a corresponding call to @Lid{lua_closeslot}.
4358This function should not be called for an index 4358This function should not be called for an index
4359that is equal to or below an active to-be-closed index. 4359that is equal to or below an active to-be-closed index.
4360 4360
4361In the case of an out-of-memory error,
4362the value in the given index is immediately closed,
4363as if it was already marked.
4364
4365Note that, both in case of errors and of a regular return, 4361Note that, both in case of errors and of a regular return,
4366by the time the @idx{__close} metamethod runs, 4362by the time the @idx{__close} metamethod runs,
4367the @N{C stack} was already unwound, 4363the @N{C stack} was already unwound,