aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_slab.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-25 10:39:59 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-01-25 10:39:59 +0000
commit4b2844b8a02a7d5efd01711260a21de9f650f7d1 (patch)
tree2e5c21ee5d2021f02778e90a0a7b4f51ea18e46f /src/core/ngx_slab.c
parent7a86f07057c9ba2c25301211605a5e93394ff504 (diff)
downloadnginx-4b2844b8a02a7d5efd01711260a21de9f650f7d1.tar.gz
nginx-4b2844b8a02a7d5efd01711260a21de9f650f7d1.zip
fix slab page or more sized allocations if nginx was build without debug
Diffstat (limited to 'src/core/ngx_slab.c')
-rw-r--r--src/core/ngx_slab.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/ngx_slab.c b/src/core/ngx_slab.c
index 233544b22..412f42879 100644
--- a/src/core/ngx_slab.c
+++ b/src/core/ngx_slab.c
@@ -661,11 +661,8 @@ ngx_slab_alloc_pages(ngx_slab_pool_t *pool, ngx_uint_t pages)
}
page->slab = pages | NGX_SLAB_PAGE_START;
-
-#if (NGX_DEBUG)
page->next = NULL;
page->prev = NGX_SLAB_PAGE;
-#endif
if (--pages == 0) {
return page;
@@ -673,10 +670,8 @@ ngx_slab_alloc_pages(ngx_slab_pool_t *pool, ngx_uint_t pages)
for (p = page + 1; pages; pages--) {
p->slab = NGX_SLAB_PAGE_BUSY;
-#if (NGX_DEBUG)
p->next = NULL;
p->prev = NGX_SLAB_PAGE;
-#endif
p++;
}