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 e4c10b25d4
commit 8329a5bc34

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;