changeset 6808:2af776c22aec

Slab: always show the requested allocation size in debug messages. Previously, allocations smaller than min_size were shown as min_size.
author Ruslan Ermilov <ru@nginx.com>
date Sat, 03 Dec 2016 10:01:03 +0300
parents ea76a3aa18ae
children 87d7e640b45d
files src/core/ngx_slab.c
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/ngx_slab.c
+++ b/src/core/ngx_slab.c
@@ -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;
     }