]> git.kaiwu.me - nginx.git/commitdiff
Slab: always show the requested allocation size in debug messages.
authorRuslan Ermilov <ru@nginx.com>
Sat, 3 Dec 2016 07:01:03 +0000 (10:01 +0300)
committerRuslan Ermilov <ru@nginx.com>
Sat, 3 Dec 2016 07:01:03 +0000 (10:01 +0300)
Previously, allocations smaller than min_size were shown as min_size.

src/core/ngx_slab.c

index 9d257f364a78df22fa430318754eddeb3ae02fb7..b2adbf423e5306e3b8c4003bce638a0e6f71592f 100644 (file)
@@ -184,7 +184,6 @@ ngx_slab_alloc_locked(ngx_slab_pool_t *pool, size_t size)
         slot = shift - pool->min_shift;
 
     } else {
-        size = pool->min_size;
         shift = pool->min_shift;
         slot = 0;
     }