Mercurial > hg > nginx-quic
comparison src/core/ngx_palloc.c @ 3328:c16e1213bf96
large allocation should not be aligned to a page size
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 Nov 2009 12:47:44 +0000 |
parents | adc4fc0c3cc3 |
children | b3aaccf50be2 |
comparison
equal
deleted
inserted
replaced
3327:f67635893ed8 | 3328:c16e1213bf96 |
---|---|
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_memalign(ngx_pagesize, size, pool->log); | 222 p = ngx_alloc(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; |