align first allocation from additional pool block, this fixes bus error on sun4v

This commit is contained in:
Igor Sysoev 2008-11-06 16:14:24 +00:00
parent 2959de23f8
commit 476eddc439

View file

@ -171,6 +171,7 @@ ngx_palloc_block(ngx_pool_t *pool, size_t size)
new->d.next = NULL;
m += sizeof(ngx_pool_data_t);
m = ngx_align_ptr(m, NGX_ALIGNMENT);
new->d.last = m + size;
current = pool->current;