diff options
author | Ruslan Ermilov <ru@nginx.com> | 2016-12-08 17:22:07 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2016-12-08 17:22:07 +0300 |
commit | 7ef8ca24b563d89f4bbc7b9b6f24211bbbbfbc41 (patch) | |
tree | 7224ee87e63a6891e08bbfca92778ec4c33b6692 /src/core/ngx_slab.c | |
parent | 5abd39a19734e22a4044af03ede4fdb4b0285d9c (diff) |
Slab: commented bitmap initialization for small allocations.
Diffstat (limited to 'src/core/ngx_slab.c')
-rw-r--r-- | src/core/ngx_slab.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |