Skip to content
Snippets Groups Projects
user avatar
Konstantin Osipov authored
tuple.cc passed wrong parameters to small_alloc_create - prealloc
size instead of slab size, and slab size instead of prealloc size.

When correct parameters were supplied, it turned out that
objsize_max is calculated wrongly, and the last factor pool
in small allocator is too framgented (uses 3 empty slots instead
of 4, with 25% overhead).

The problem would not show up in any test, only increase
memory fragmentation.

This patch also fixes this problem.
aef3b612
History
Name Last commit Last update