Skip to content

Commit

Permalink
Slab: commented bitmap initialization for small allocations.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdocguard committed Dec 8, 2016
1 parent 5abd39a commit 7ef8ca2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/ngx_slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ef8ca2

Please sign in to comment.