Mercurial > hg > nginx
comparison src/core/ngx_palloc.c @ 429:694cd6cdb714
nginx-0.0.11-2004-09-17-20:07:35 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 17 Sep 2004 16:07:35 +0000 |
parents | 3f88935a02e8 |
children | 9549fc9508e5 |
comparison
equal
deleted
inserted
replaced
428:5e73d0ea4dab | 429:694cd6cdb714 |
---|---|
68 { | 68 { |
69 char *m; | 69 char *m; |
70 ngx_pool_t *p, *n; | 70 ngx_pool_t *p, *n; |
71 ngx_pool_large_t *large, *last; | 71 ngx_pool_large_t *large, *last; |
72 | 72 |
73 if (size <= (size_t) NGX_MAX_ALLOC_FROM_POOL) { | 73 if (size <= (size_t) NGX_MAX_ALLOC_FROM_POOL |
74 | 74 && size <= (size_t) (pool->end - (char *) pool)) |
75 { | |
75 for (p = pool, n = pool->next; /* void */; p = n, n = n->next) { | 76 for (p = pool, n = pool->next; /* void */; p = n, n = n->next) { |
76 m = ngx_align(p->last); | 77 m = ngx_align(p->last); |
77 | 78 |
78 if ((size_t) (p->end - m) >= size) { | 79 if ((size_t) (p->end - m) >= size) { |
79 p->last = m + size ; | 80 p->last = m + size ; |