From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 22 Feb 2019 21:31:54 +0300 From: Konstantin Osipov Subject: Re: [tarantool-patches] [PATCH 3/3] salad: fix heap reserve() behaviour Message-ID: <20190222183154.GC1691@chai> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com List-ID: * Vladislav Shpilevoy [19/02/22 14:39]: > Reserve() function by definition should ensure that there is > enough space to store something. But heap reserve() always just > increases the capacity twice. Even if there was already enough > memory. Check for not necessary realloc was done out of this > function. This was wrong. The commit makes reserve() be real > reserve(). > OK to push. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov