Mercurial > hg > nginx
comparison src/core/ngx_slab.c @ 6830:6eed5ed31e22
Slab: commented bitmap initialization for small allocations.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 08 Dec 2016 17:22:07 +0300 |
parents | 6e757036e588 |
children | e4590dfd97ff |
comparison
equal
deleted
inserted
replaced
6829:6e757036e588 | 6830:6eed5ed31e22 |
---|---|
336 | 336 |
337 if (n == 0) { | 337 if (n == 0) { |
338 n = 1; | 338 n = 1; |
339 } | 339 } |
340 | 340 |
341 /* "n" elements for bitmap, plus one requested */ | |
341 bitmap[0] = ((uintptr_t) 2 << n) - 1; | 342 bitmap[0] = ((uintptr_t) 2 << n) - 1; |
342 | 343 |
343 map = (ngx_pagesize >> shift) / (sizeof(uintptr_t) * 8); | 344 map = (ngx_pagesize >> shift) / (sizeof(uintptr_t) * 8); |
344 | 345 |
345 for (i = 1; i < map; i++) { | 346 for (i = 1; i < map; i++) { |