From 6ccd24eff58340c00db2877c4558a63c6b859442 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 19 Jan 2021 10:03:13 -0300 Subject: 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. --- manual/manual.of | 4 ---- 1 file changed, 4 deletions(-) (limited to 'manual') 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}. This function should not be called for an index that is equal to or below an active to-be-closed index. -In the case of an out-of-memory error, -the value in the given index is immediately closed, -as if it was already marked. - Note that, both in case of errors and of a regular return, by the time the @idx{__close} metamethod runs, the @N{C stack} was already unwound, -- cgit v1.2.3-55-g6feb