mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 19:12:47 +08:00
large allocation should not be aligned to a page size
This commit is contained in:
parent
3e1a05c467
commit
ece77cd5be
@ -219,7 +219,7 @@ ngx_palloc_large(ngx_pool_t *pool, size_t size)
|
|||||||
ngx_uint_t n;
|
ngx_uint_t n;
|
||||||
ngx_pool_large_t *large;
|
ngx_pool_large_t *large;
|
||||||
|
|
||||||
p = ngx_memalign(ngx_pagesize, size, pool->log);
|
p = ngx_alloc(size, pool->log);
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user