From: Igor Sysoev Date: Thu, 6 Nov 2008 16:14:24 +0000 (+0000) Subject: align first allocation from additional pool block, this fixes bus error on sun4v X-Git-Tag: release-0.7.20~7 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=8329a5bc343387d9f7fc35f37a096fc6d3a6909a;p=nginx.git align first allocation from additional pool block, this fixes bus error on sun4v --- diff --git a/src/core/ngx_palloc.c b/src/core/ngx_palloc.c index 0cadd4aed..ce826bab6 100644 --- a/src/core/ngx_palloc.c +++ b/src/core/ngx_palloc.c @@ -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;