[Tarantool-patches] [PATCH v2 luajit 0/3] Trace abort on FFI sandwich or mode change

Kirill Yukhin kyukhin at tarantool.org
Mon Apr 20 10:09:28 MSK 2020


Hello,

On 15 апр 03:34, Igor Munkin wrote:
> This series closes two issues related to the JIT machinery behaviour:
> * "FFI sandwich"(*) detection is introduced. If sandwich is detected
>   while trace recording the recording is aborted. The sandwich detected
>   while mcode execution leads to the platform panic.
> * luaJIT_setmode call is prohibited while mcode execution and leads to
>   the platform panic.
> 
> (*) The following stack mix is called FFI sandwich.
>     | Lua-FFI -> C routine -> Lua-C API -> Lua VM
>     This sort of re-entrancy is explicitly not supported by LuaJIT
>     compiler. For more info see [1].
> 
> Furthermore, this series also provides an aixillary module for LuaJIT
> testing machinery.

I've checked your patchset into tarantool/luajit repo and bumped new
version in 1.10, 2.2, 2.3 and master.

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list