From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 1F975469719 for ; Mon, 28 Sep 2020 16:17:24 +0300 (MSK) Date: Mon, 28 Sep 2020 16:06:50 +0300 From: Igor Munkin Message-ID: <20200928130650.GP18920@tarantool.org> References: <4AE5222F-22B2-4752-AD8C-E5C1CCF7FE13@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4AE5222F-22B2-4752-AD8C-E5C1CCF7FE13@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2 0/2] Prevent JIT engine breakage on fibers switch-over List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "sergos@tarantool.org" Cc: tarantool-patches@dev.tarantool.org, Vladislav Shpilevoy Sergos, Thanks for your review! On 24.09.20, sergos@tarantool.org wrote: > Hi! > > Thanks for the patch, please consider my 2 cents below. > > Sergos > > > On 23 Sep 2020, at 22:06, Igor Munkin wrote: > > > > > > @ChangeLog: > > * Fixed fibers switch-over to prevent JIT machinery misbehaviour. Trace > > recording is aborted when fiber yields the execution. The yield > > occuring while mcode is being run leads to the platform panic > > Could you please rephrase the last sentence to be more clear, like > yielding from a function called directly from the jitted code (means - > through FFI) will cause panic. I guess the following wording is quite close to the one you desire: @ChangeLog: * Fixed fibers switch-over to prevent JIT machinery misbehaviour. Trace recording is aborted when fiber yields the execution. The yield occuring while the compiled code is being run (it's likely a function with a yield underneath called via LuaJIT FFI) leads to the platform panic (gh-1700, gh-4491). > > > (gh-1700, gh-4491). > > > > > > -- > > 2.25.0 > > > -- Best regards, IM