From: Ruslan Ermilov Date: Thu, 8 Dec 2016 14:22:07 +0000 (+0300) Subject: Slab: commented bitmap initialization for small allocations. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=7ef8ca24b563d89f4bbc7b9b6f24211bbbbfbc41;p=nginx.git Slab: commented bitmap initialization for small allocations. --- diff --git a/src/core/ngx_slab.c b/src/core/ngx_slab.c index 6695bb327..66faecc74 100644 --- a/src/core/ngx_slab.c +++ b/src/core/ngx_slab.c @@ -338,6 +338,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size) n = 1; } + /* "n" elements for bitmap, plus one requested */ bitmap[0] = ((uintptr_t) 2 << n) - 1; map = (ngx_pagesize >> shift) / (sizeof(uintptr_t) * 8);