comparison src/core/ngx_slab.c @ 382:e9979466be2f NGINX_0_6_35

nginx 0.6.35 *) Bugfix: in shared memory allocations if nginx was built without debugging. Thanks to Andrey Kvasov. *) Bugfixes in an "Expect" request header line support. *) Bugfix: UTF-8 encoding usage in the ngx_http_autoindex_module.
author Igor Sysoev <http://sysoev.ru>
date Mon, 26 Jan 2009 00:00:00 +0300
parents 9121a0a91f47
children
comparison
equal deleted inserted replaced
381:0d28fd57288c 382:e9979466be2f
659 p->next = page->next; 659 p->next = page->next;
660 page->next->prev = page->prev; 660 page->next->prev = page->prev;
661 } 661 }
662 662
663 page->slab = pages | NGX_SLAB_PAGE_START; 663 page->slab = pages | NGX_SLAB_PAGE_START;
664
665 #if (NGX_DEBUG)
666 page->next = NULL; 664 page->next = NULL;
667 page->prev = NGX_SLAB_PAGE; 665 page->prev = NGX_SLAB_PAGE;
668 #endif
669 666
670 if (--pages == 0) { 667 if (--pages == 0) {
671 return page; 668 return page;
672 } 669 }
673 670
674 for (p = page + 1; pages; pages--) { 671 for (p = page + 1; pages; pages--) {
675 p->slab = NGX_SLAB_PAGE_BUSY; 672 p->slab = NGX_SLAB_PAGE_BUSY;
676 #if (NGX_DEBUG)
677 p->next = NULL; 673 p->next = NULL;
678 p->prev = NGX_SLAB_PAGE; 674 p->prev = NGX_SLAB_PAGE;
679 #endif
680 p++; 675 p++;
681 } 676 }
682 677
683 return page; 678 return page;
684 } 679 }