mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
Slab: commented bitmap initialization for small allocations.
This commit is contained in:
parent
5abd39a197
commit
7ef8ca24b5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user