From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 3AFF06EC55; Wed, 8 Sep 2021 00:43:29 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3AFF06EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1631051009; bh=FZgFdXS+xCCCeWTeYoz544qy5A8KuXlreP5rtVdKdLc=; h=To:Cc:References:Date:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=VojKjhPgHL7E0aloFqRACOZhhhaSUWrxoG+6ka5QvazRyK4bxDsBWk18vuinUJoP0 LU/Q5y/t/Zupu8EA/fluQdQFA9U9b88dj+fA7bbt/WKCensWvpkzuNc7PfBCH09IoQ szN0XW4O57nCczSJkr+2lvRNPLz+KxUeOF3ivupk= Received: from smtpng3.i.mail.ru (smtpng3.i.mail.ru [94.100.177.149]) (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 673EC6EC55 for ; Wed, 8 Sep 2021 00:43:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 673EC6EC55 Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1mNisI-0006Bv-6q; Wed, 08 Sep 2021 00:43:26 +0300 To: olegrok@tarantool.org, imun@tarantool.org Cc: tarantool-patches@dev.tarantool.org References: Message-ID: <5a3d0fa1-f7dd-9bb7-b465-e233f225b4af@tarantool.org> Date: Tue, 7 Sep 2021 23:43:24 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD91AE02D33A9C88A2FECE56E2A292C9F7D3C69CC5C84EEB3A800894C459B0CD1B9E97EC252DB8A1EBCD68A9D8C15EC33C7DE996B6E0ADC99F2012184F85FB44711 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7AD2F2D6F6013FF7FC2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE76D34FAA3D8B315888F08D7030A58E5AD1A62830130A00468AEEEE3FBA3A834EE7353EFBB553375663E385859ED5ED75662EEA231AD74E528AC6E64446FF43DB5A471835C12D1D9774AD6D5ED66289B5278DA827A17800CE7328B01A8D746D8839FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3BEC81E4AEBD6D2BF117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F7900637BC468E7E89D8C5D6EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A52F49CBCD0D54E67C43ECCB81E830189DC59DECC21CAE366CD59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA752546FE575EB473F1410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34A08F09726D78E07BA469D929FCDC1D0CFCE4FD29F5570729D40B5AD0F3D6EF914A7452839B77FE8A1D7E09C32AA3244C045806A2683A704C0C76889C5E8ADAC6435BF7150578642FFACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojSvkey75OmIr5D5mCXd0+7A== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D77CDA4832012E909C0F989DBED17CBBF3841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v3 0/4] fiber: keep reference to userdata if fiber created once X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi! Thanks for the patch. So, did you see my comment in the previous version? Maybe add an own constant to fiber.h and add a static assertion into the main executable? This would make the code simpler IMHO. The solution about yields and Lua GC uses extern function only because it actually provides notably better perf.