mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
align first allocation from additional pool block, this fixes bus error on sun4v
This commit is contained in:
parent
e4c10b25d4
commit
8329a5bc34
@ -171,6 +171,7 @@ ngx_palloc_block(ngx_pool_t *pool, size_t size)
|
|||||||
new->d.next = NULL;
|
new->d.next = NULL;
|
||||||
|
|
||||||
m += sizeof(ngx_pool_data_t);
|
m += sizeof(ngx_pool_data_t);
|
||||||
|
m = ngx_align_ptr(m, NGX_ALIGNMENT);
|
||||||
new->d.last = m + size;
|
new->d.last = m + size;
|
||||||
|
|
||||||
current = pool->current;
|
current = pool->current;
|
||||||
|
Loading…
Reference in New Issue
Block a user