[Tarantool-patches] [PATCH luajit 2/2][v2] FFI: Turn FFI finalizer table into a proper GC root.
Sergey Bronnikov
sergeyb at tarantool.org
Thu Aug 15 10:34:03 MSK 2024
Hello, Sergey,
On 12.08.2024 16:17, Sergey Kaplun wrote:
<snipped>
>>
>>> Also, please add here comment about `sizeof(buff) - 1` too.
> Please add a comment that the terminating '\0' is considered by parser
> as part of the input, so we must chomp it.
Updated:
--- a/test/tarantool-c-tests/lj-1168-unmarked-finalizer-tab.test.c
+++ b/test/tarantool-c-tests/lj-1168-unmarked-finalizer-tab.test.c
@@ -89,6 +89,10 @@ unmarked_finalizer_tab_gcmark(void *test_state)
/* Not trigger GC during `lua_openffi()`. */
lua_gc(L, LUA_GCSTOP, 0);
+ /*
+ * The terminating '\0' is considered by parser as part of
+ * the input, so we must chomp it.
+ */
int res = luaL_loadbufferx(L, buff, sizeof(buff) - 1,
"test_chunk", "t");
if (res != LUA_OK) {
>
> <snipped>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20240815/ce1c5f65/attachment.htm>
More information about the Tarantool-patches
mailing list