[Tarantool-patches] [PATCH 0/4] Enable LuaJIT tests written in C
Igor Munkin
imun at tarantool.org
Fri Mar 27 16:32:02 MSK 2020
Sorry, forgot to add a ChangeLog entry.
On 27.03.20, Igor Munkin wrote:
> This series prepares the existing testing machinery to run LuaJIT tests
> requiring libraries implemented in C and enables the existing ones:
> * gh-4427-ffi-sandwich
> * lj-flush-on-trace
>
@ChangeLog:
* "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 -> С routine -> Lua-C API -> Lua VM
This sort of re-entrancy is explicitly not supported by LuaJIT
compiler. For more info see gh-4427.
> Igor Munkin (4):
> luajit: bump new version
> test: adjust luajit-tap testing machinery
> test: enable luajit-tap:gh-4427-ffi-sandwich tests
> test: enable luajit-tap:lj-flush-on-trace tests
>
> test/CMakeLists.txt | 17 +++++++-----
> test/app-tap/gh-4427-ffi-sandwich.test.lua | 30 ++++++++++++++++++++++
> test/app-tap/lj-flush-on-trace.test.lua | 30 ++++++++++++++++++++++
> third_party/luajit | 2 +-
> 4 files changed, 72 insertions(+), 7 deletions(-)
> create mode 100755 test/app-tap/gh-4427-ffi-sandwich.test.lua
> create mode 100755 test/app-tap/lj-flush-on-trace.test.lua
>
> --
> 2.25.0
>
--
Best regards,
IM
More information about the Tarantool-patches
mailing list