Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-11-06 19:14:24 +0300
committerIgor Sysoev <igor@sysoev.ru>2008-11-06 19:14:24 +0300
commit8329a5bc343387d9f7fc35f37a096fc6d3a6909a (patch)
treebb34f81248b10a4f85b8ba8a00e8090ad173de6d /src
parente4c10b25d474f939e0d5384eb0558804bdd7c490 (diff)
align first allocation from additional pool block, this fixes bus error on sun4v
Diffstat (limited to 'src')
-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;