From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 69E752B64E for ; Fri, 29 Mar 2019 15:26:21 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Zkyz0qhN1pM for ; Fri, 29 Mar 2019 15:26:21 -0400 (EDT) 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 turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id BA2072B64D for ; Fri, 29 Mar 2019 15:26:20 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH v9 4/7] lua: remove exceptions from function luaL_tofield() References: <20190322155309.GF6548@chai> From: Vladislav Shpilevoy Message-ID: Date: Fri, 29 Mar 2019 22:26:17 +0300 MIME-Version: 1.0 In-Reply-To: <20190322155309.GF6548@chai> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org, Konstantin Osipov On 22/03/2019 18:53, Konstantin Osipov wrote: > * imeevma@tarantool.org [19/03/22 13:57]: >> case LUA_TCDATA: >> { >> - uint32_t ctypeid = 0; >> - void *cdata = luaL_checkcdata(L, index, &ctypeid); >> + GCcdata *cd = cdataV(L->base + index - 1); >> + void *cdata = (void *)cdataptr(cd); >> + > > What is the reason for this change? Because luaL_checkcdata throws. So here it is partially inlined. > > > -- > Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 > http://tarantool.io - www.twitter.com/kostja_osipov >