[Tarantool-patches] [PATCH] fiber: abort trace recording on fiber yield

Konstantin Osipov kostja.osipov at gmail.com
Tue Mar 31 19:58:00 MSK 2020


* Igor Munkin <imun at tarantool.org> [20/03/31 02:06]:
> Since Tarantool fibers doesn't respect Lua coroutine switch mechanism,
> JIT machinery stays unnotified when one lua_State substitues another
> one. As a result if trace recording hasn't been aborted prior to fiber
> switch, the recording proceeds using the new lua_State and leads to
> failure either on any compiler phase or on execution the compiled trace.
> 
> This changeset adds a mandatory on_yield trigger aborting trace
> recording when fiber switches to another one.
> 
> Fixes #4491
> Closes #1700

This is simply awesome.

-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list