[Tarantool-patches] [PATCH luajit] LJ_GC64: Always snapshot functions for non-base frames.
Igor Munkin
imun at tarantool.org
Thu Feb 15 16:39:54 MSK 2024
Sergey,
I've checked the patchset into all long-term branches in
tarantool/luajit and bumped a new version in master, release/3.0 and
release/2.11.
On 12.10.23, Sergey Bronnikov via Tarantool-patches wrote:
> From: Sergey Bronnikov <sergeyb at tarantool.org>
>
> Reported by Arseny Vakhrushev.
> Analysis and fix contributed by Peter Cawley.
>
> (cherry picked from commit ff1e72acead01df7d8ed0fbb31efd32f57953618)
>
> The problem is GC64-specific and could be reproduced with enabled
> compiler options LUA_USE_ASSERT and LUA_USE_APICHECK.
>
> Sergey Kaplun:
> * minimized reproducer made by fuzzing test
>
> Sergey Bronnikov:
> * added the description (see a comment in the test)
> * added tests for the problem: first one based on the original
> reproducer and second one based on a reproducer made by fuzzing test.
>
> Part of tarantool/tarantool#8825
> ---
> Branch: https://github.com/tarantool/luajit/commits/ligurio/lj-611-always-snapshot-functions-for-non-base-frames
> PR: https://github.com/tarantool/tarantool/pull/9254
> LJ issue: https://github.com/LuaJIT/LuaJIT/issues/611
>
> src/lj_record.c | 1 +
> src/lj_snap.c | 9 +++-
> ...t-functions-for-non-base-frames-1.test.lua | 36 +++++++++++++++
> ...hot-functions-for-non-base-frames.test.lua | 45 +++++++++++++++++++
> 4 files changed, 89 insertions(+), 2 deletions(-)
> create mode 100644 test/tarantool-tests/lj-611-always-snapshot-functions-for-non-base-frames-1.test.lua
> create mode 100644 test/tarantool-tests/lj-611-always-snapshot-functions-for-non-base-frames.test.lua
>
<snipped>
> --
> 2.34.1
>
--
Best regards,
IM
More information about the Tarantool-patches
mailing list