Skip to content
Snippets Groups Projects
Unverified Commit 96498976 authored by Sergey Kaplun's avatar Sergey Kaplun Committed by Igor Munkin
Browse files

tuple: make tuple_bless() compilable


tuple_bless() uses a tail call to ffi.gc() with return to the caller.
This tail call uses the current (tuple_bless) frame instead of creating
the frame for the callee (ffi.gc). When JIT tries to compile return from
`ffi.gc()` to the frame below it aborts the trace recording with the
error "NYI: return to lower frame".

This patch replaces the tail call with using additional local variable
returned to the caller right after.

Reviewed-by: default avatarNikita Pettik <korablev@tarantool.org>
Reviewed-by: default avatarIgor Munkin <imun@tarantool.org>
Signed-off-by: default avatarIgor Munkin <imun@tarantool.org>
parent f6621403
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment