summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-26 15:24:14 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-01-26 15:24:14 +0000
commit92b808a2d56bf053665ab7d78f9d80eb1e18a58c (patch)
treee9940c8f6f194fd9316db7e7ca1697d2d128ea7c
parent890cd27c8baba50776c7767b738ca71d9577636e (diff)
downloadnginx-92b808a2d56bf053665ab7d78f9d80eb1e18a58c.tar.gz
fix slab page or more sized allocations if nginx was build without debug
-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 b187026d8..a74dcd94f 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++;
}