[nginx] Slab: commented bitmap initialization for small allocations.
Ruslan Ermilov
ru at nginx.com
Thu Dec 8 14:26:27 UTC 2016
details: http://hg.nginx.org/nginx/rev/6eed5ed31e22
branches:
changeset: 6830:6eed5ed31e22
user: Ruslan Ermilov <ru at nginx.com>
date: Thu Dec 08 17:22:07 2016 +0300
description:
Slab: commented bitmap initialization for small allocations.
diffstat:
src/core/ngx_slab.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 6e757036e588 -r 6eed5ed31e22 src/core/ngx_slab.c
--- a/src/core/ngx_slab.c Wed Dec 07 22:25:37 2016 +0300
+++ b/src/core/ngx_slab.c Thu Dec 08 17:22:07 2016 +0300
@@ -338,6 +338,7 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *p
n = 1;
}
+ /* "n" elements for bitmap, plus one requested */
bitmap[0] = ((uintptr_t) 2 << n) - 1;
map = (ngx_pagesize >> shift) / (sizeof(uintptr_t) * 8);
More information about the nginx-devel
mailing list