Mercurial > hg > nginx
comparison src/core/ngx_slab.c @ 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 |
comparison
equal
deleted
inserted
replaced
6807:ea76a3aa18ae | 6808:2af776c22aec |
---|---|
182 shift = 1; | 182 shift = 1; |
183 for (s = size - 1; s >>= 1; shift++) { /* void */ } | 183 for (s = size - 1; s >>= 1; shift++) { /* void */ } |
184 slot = shift - pool->min_shift; | 184 slot = shift - pool->min_shift; |
185 | 185 |
186 } else { | 186 } else { |
187 size = pool->min_size; | |
188 shift = pool->min_shift; | 187 shift = pool->min_shift; |
189 slot = 0; | 188 slot = 0; |
190 } | 189 } |
191 | 190 |
192 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, ngx_cycle->log, 0, | 191 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, ngx_cycle->log, 0, |