[nginx] Slab: always show the requested allocation size in debug messages.

Ruslan Ermilov ru at nginx.com
Sat Dec 3 07:06:32 UTC 2016


details:   http://hg.nginx.org/nginx/rev/2af776c22aec
branches:  
changeset: 6808:2af776c22aec
user:      Ruslan Ermilov <ru at nginx.com>
date:      Sat Dec 03 10:01:03 2016 +0300
description:
Slab: always show the requested allocation size in debug messages.

Previously, allocations smaller than min_size were shown as min_size.

diffstat:

 src/core/ngx_slab.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r ea76a3aa18ae -r 2af776c22aec src/core/ngx_slab.c
--- a/src/core/ngx_slab.c	Sat Dec 03 09:55:40 2016 +0300
+++ b/src/core/ngx_slab.c	Sat Dec 03 10:01:03 2016 +0300
@@ -184,7 +184,6 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *p
         slot = shift - pool->min_shift;
 
     } else {
-        size = pool->min_size;
         shift = pool->min_shift;
         slot = 0;
     }



More information about the nginx-devel mailing list