Mercurial > hg > nginx-ranges
comparison src/core/ngx_palloc.c @ 544:f7ec98e3caeb NGINX_0_8_18
nginx 0.8.18
*) Feature: the "read_ahead" directive.
*) Feature: now several "perl_modules" directive may be used.
*) Feature: the "limit_req_log_level" and "limit_conn_log_level"
directives.
*) Bugfix: now "limit_req" directive conforms to the leaky bucket
algorithm.
Thanks to Maxim Dounin.
*) Bugfix: nginx did not work on Linux/sparc.
Thanks to Marcus Ramberg.
*) Bugfix: nginx sent '\0' in a "Location" response header line on
MKCOL request.
Thanks to Xie Zhenye.
*) Bugfix: zero status code was logged instead of 499 status code; the
bug had appeared in 0.8.11.
*) Bugfix: socket leak; the bug had appeared in 0.8.11.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 06 Oct 2009 00:00:00 +0400 |
parents | 207ae3ff0444 |
children | e19e5f542878 |
comparison
equal
deleted
inserted
replaced
543:7688992d2abb | 544:f7ec98e3caeb |
---|---|
15 ngx_pool_t * | 15 ngx_pool_t * |
16 ngx_create_pool(size_t size, ngx_log_t *log) | 16 ngx_create_pool(size_t size, ngx_log_t *log) |
17 { | 17 { |
18 ngx_pool_t *p; | 18 ngx_pool_t *p; |
19 | 19 |
20 p = ngx_alloc(size, log); | 20 p = ngx_memalign(ngx_pagesize, size, log); |
21 if (p == NULL) { | 21 if (p == NULL) { |
22 return NULL; | 22 return NULL; |
23 } | 23 } |
24 | 24 |
25 p->d.last = (u_char *) p + sizeof(ngx_pool_t); | 25 p->d.last = (u_char *) p + sizeof(ngx_pool_t); |
179 size_t psize; | 179 size_t psize; |
180 ngx_pool_t *p, *new, *current; | 180 ngx_pool_t *p, *new, *current; |
181 | 181 |
182 psize = (size_t) (pool->d.end - (u_char *) pool); | 182 psize = (size_t) (pool->d.end - (u_char *) pool); |
183 | 183 |
184 m = ngx_alloc(psize, pool->log); | 184 m = ngx_memalign(ngx_pagesize, psize, pool->log); |
185 if (m == NULL) { | 185 if (m == NULL) { |
186 return NULL; | 186 return NULL; |
187 } | 187 } |
188 | 188 |
189 new = (ngx_pool_t *) m; | 189 new = (ngx_pool_t *) m; |
217 { | 217 { |
218 void *p; | 218 void *p; |
219 ngx_uint_t n; | 219 ngx_uint_t n; |
220 ngx_pool_large_t *large; | 220 ngx_pool_large_t *large; |
221 | 221 |
222 p = ngx_alloc(size, pool->log); | 222 p = ngx_memalign(ngx_pagesize, size, pool->log); |
223 if (p == NULL) { | 223 if (p == NULL) { |
224 return NULL; | 224 return NULL; |
225 } | 225 } |
226 | 226 |
227 n = 0; | 227 n = 0; |