diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-01-19 10:03:13 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-01-19 10:03:13 -0300 |
| commit | 6ccd24eff58340c00db2877c4558a63c6b859442 (patch) | |
| tree | 4c8f51657d8d1f4921846a23ba4b475db49fd837 /manual | |
| parent | d0f34d91373fa265d4445e456e4a10ce206c1559 (diff) | |
| download | lua-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.of | 4 |
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}. | |||
| 4358 | This function should not be called for an index | 4358 | This function should not be called for an index |
| 4359 | that is equal to or below an active to-be-closed index. | 4359 | that is equal to or below an active to-be-closed index. |
| 4360 | 4360 | ||
| 4361 | In the case of an out-of-memory error, | ||
| 4362 | the value in the given index is immediately closed, | ||
| 4363 | as if it was already marked. | ||
| 4364 | |||
| 4365 | Note that, both in case of errors and of a regular return, | 4361 | Note that, both in case of errors and of a regular return, |
| 4366 | by the time the @idx{__close} metamethod runs, | 4362 | by the time the @idx{__close} metamethod runs, |
| 4367 | the @N{C stack} was already unwound, | 4363 | the @N{C stack} was already unwound, |
