aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-11-06 16:14:24 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-11-06 16:14:24 +0000
commit8329a5bc343387d9f7fc35f37a096fc6d3a6909a (patch)
treebb34f81248b10a4f85b8ba8a00e8090ad173de6d
parente4c10b25d474f939e0d5384eb0558804bdd7c490 (diff)
downloadnginx-8329a5bc343387d9f7fc35f37a096fc6d3a6909a.tar.gz
nginx-8329a5bc343387d9f7fc35f37a096fc6d3a6909a.zip
align first allocation from additional pool block, this fixes bus error on sun4v
-rw-r--r--src/core/ngx_palloc.c1
1 files changed, 1 insertions, 0 deletions
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;