Welcome! Log In Create A New Profile

Advanced

[nginx] Slab: commented bitmap initialization for small allocations.

December 08, 2016 09:28AM
details: http://hg.nginx.org/nginx/rev/6eed5ed31e22
branches:
changeset: 6830:6eed5ed31e22
user: Ruslan Ermilov <ru@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);
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Slab: commented bitmap initialization for small allocations.

ru@nginx.com 866 December 08, 2016 09:28AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready