Slab: commented bitmap initialization for small allocations.

This commit is contained in:
Ruslan Ermilov 2016-12-08 17:22:07 +03:00
parent 5abd39a197
commit 7ef8ca24b5

View File

@ -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);