]> git.kaiwu.me - nginx.git/commit
Slab: fixed small allocations on systems with large pagesize.
authorRuslan Ermilov <ru@nginx.com>
Tue, 4 Jul 2017 15:32:30 +0000 (18:32 +0300)
committerRuslan Ermilov <ru@nginx.com>
Tue, 4 Jul 2017 15:32:30 +0000 (18:32 +0300)
commitd0071f08e88660aab9af84f4210c1a4a32f34980
tree9e0f2266fe6ee4e0e1f4443ba9461f8996540f9d
parent75c3f8958be4ae7284a46f1d61d79193e6bc5d95
Slab: fixed small allocations on systems with large pagesize.

Notably, on ppc64 with 64k pagesize, slab 0 (of size 8) requires
128 64-bit elements for bitmasks.  The code bogusly assumed that
one uintptr_t is enough for bitmasks plus at least one free slot.
src/core/ngx_slab.c