From 7ef8ca24b563d89f4bbc7b9b6f24211bbbbfbc41 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 8 Dec 2016 17:22:07 +0300 Subject: Slab: commented bitmap initialization for small allocations. --- src/core/ngx_slab.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/ngx_slab.c') 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); -- cgit