From 30bc98a5a6a4d1e32a032048592d3ff01bf6fb6f Mon Sep 17 00:00:00 2001
From: Sergey Kaplun <skaplun@tarantool.org>
Date: Thu, 11 Apr 2024 13:20:39 +0300
Subject: [PATCH] luajit: bump new version

* ci: bump version of actions/checkout
* test: fix typo in the link to the issue
* test: refactor CMake macro LibRealPath
* test: move LibRealPath to the separate module
* test: more cautious usage of LD_PRELOAD for ASan
* test: fix lj-802-panic-at-mcode-protfail GCC+ASan
* ci: execute LuaJIT tests with GCC 10 and ASAN
* cmake: replace prove with CTest
* Prevent down-recursion for side traces.
* Handle stack reallocation in debug.setmetatable() and
  lua_setmetatable().
* profilers: print user-friendly errors

Closes #5994
Closes #9595
Closes #9217
Closes #9656

NO_DOC=LuaJIT submodule bump
NO_TEST=LuaJIT submodule bump
---
 changelogs/unreleased/gh-5994-memprof-human-readable.md | 2 ++
 changelogs/unreleased/gh-9595-luajit-fixes.md           | 3 +++
 third_party/luajit                                      | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/changelogs/unreleased/gh-5994-memprof-human-readable.md b/changelogs/unreleased/gh-5994-memprof-human-readable.md
index 39840a7af5..45d9ee1493 100644
--- a/changelogs/unreleased/gh-5994-memprof-human-readable.md
+++ b/changelogs/unreleased/gh-5994-memprof-human-readable.md
@@ -2,3 +2,5 @@
 
 Added the `--human-readable` option for the `misc.memprof` parser to print
 sizes like 1KiB, 234MiB, 2GiB, etc.
+
+Made the errors from the profilers more user-friendly (gh-9217).
diff --git a/changelogs/unreleased/gh-9595-luajit-fixes.md b/changelogs/unreleased/gh-9595-luajit-fixes.md
index 5c1e45efdc..19ecd5acb0 100644
--- a/changelogs/unreleased/gh-9595-luajit-fixes.md
+++ b/changelogs/unreleased/gh-9595-luajit-fixes.md
@@ -18,3 +18,6 @@ were fixed as part of this activity:
 * Fixed recording of the `__concat` metamethod for vararg or protected frames.
 * Fixed recording of a side trace returning to a lower frame with a maximum
   possible frame size.
+* Fixed `debug.setmetatable()` and `lua_setmetatable()` with enabled
+  `jit.dump()`.
+* Fixed recording of side traces with a down-recursion.
diff --git a/third_party/luajit b/third_party/luajit
index 40481cc65a..212511daa1 160000
--- a/third_party/luajit
+++ b/third_party/luajit
@@ -1 +1 @@
-Subproject commit 40481cc65a01d8c3d23e3460e2fc5879ba8ba7df
+Subproject commit 212511daa1cfcabbae71aded9887745688d7ceac
-- 
GitLab