[tarantool-patches] [PATCH 3/3] salad: fix heap reserve() behaviour

Konstantin Osipov kostja at tarantool.org
Fri Feb 22 21:31:54 MSK 2019


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [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



More information about the Tarantool-patches mailing list