Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH luajit 0/2] VM events and finalizers in separate state
@ 2026-03-28 15:31 Sergey Kaplun via Tarantool-patches
  2026-03-28 15:31 ` [Tarantool-patches] [PATCH luajit 1/2] Run " Sergey Kaplun via Tarantool-patches
  2026-03-28 15:31 ` [Tarantool-patches] [PATCH luajit 2/2] Fix VM event error handling for finalizers Sergey Kaplun via Tarantool-patches
  0 siblings, 2 replies; 9+ messages in thread
From: Sergey Kaplun via Tarantool-patches @ 2026-03-28 15:31 UTC (permalink / raw)
  To: Sergey Bronnikov; +Cc: tarantool-patches

This patchset fixes the corner case of VM event stack overflow, which
results in broken JIT recording. The second patch is a fixup for the
first one.

Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-1403-vmevent-crash-on-stkov
Related issues:
* https://github.com/LuaJIT/LuaJIT/issues/1403
* https://github.com/LuaJIT/LuaJIT/issues/1445
* https://github.com/tarantool/tarantool/issues/12134

Mike Pall (2):
  Run VM events and finalizers in separate state.
  Fix VM event error handling for finalizers.

 src/lj_gc.c                                   | 22 +++--
 src/lj_obj.h                                  |  2 +
 src/lj_parse.c                                |  4 +-
 src/lj_state.c                                |  1 +
 src/lj_trace.c                                | 91 +++++++++----------
 src/lj_vmevent.c                              |  5 +
 src/lj_vmevent.h                              | 22 +++--
 test/LuaJIT-tests/lang/gc_debug.lua           | 11 +--
 .../lj-1403-vmevent-crash-on-stkov.test.lua   | 47 ++++++++++
 .../lj-1445-errfin-errmsg.test.lua            | 27 ++++++
 10 files changed, 154 insertions(+), 78 deletions(-)
 create mode 100644 test/tarantool-tests/lj-1403-vmevent-crash-on-stkov.test.lua
 create mode 100644 test/tarantool-tests/lj-1445-errfin-errmsg.test.lua

-- 
2.53.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-30 11:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-28 15:31 [Tarantool-patches] [PATCH luajit 0/2] VM events and finalizers in separate state Sergey Kaplun via Tarantool-patches
2026-03-28 15:31 ` [Tarantool-patches] [PATCH luajit 1/2] Run " Sergey Kaplun via Tarantool-patches
2026-03-30  7:58   ` Sergey Bronnikov via Tarantool-patches
2026-03-30  9:38     ` Sergey Kaplun via Tarantool-patches
2026-03-30 11:06       ` Sergey Bronnikov via Tarantool-patches
2026-03-28 15:31 ` [Tarantool-patches] [PATCH luajit 2/2] Fix VM event error handling for finalizers Sergey Kaplun via Tarantool-patches
2026-03-30  8:08   ` Sergey Bronnikov via Tarantool-patches
2026-03-30  9:44     ` Sergey Kaplun via Tarantool-patches
2026-03-30 11:07       ` Sergey Bronnikov via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox