comparison src/core/ngx_slab.c @ 440:6281966854a5 NGINX_0_7_32

nginx 0.7.32 *) Feature: now a directory existence testing can be set explicitly in the "try_files" directive. *) Bugfix: fastcgi_store stored files not always. *) Bugfix: in geo ranges. *) Bugfix: in shared memory allocations if nginx was built without debugging. Thanks to Andrey Kvasov.
author Igor Sysoev <http://sysoev.ru>
date Mon, 26 Jan 2009 00:00:00 +0300
parents ce4f9ff90bfa
children 56baf312c1b5
comparison
equal deleted inserted replaced
439:02687ee42c28 440:6281966854a5
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 }