comparison src/core/ngx_palloc.c @ 2289:857c161d2768

align first allocation from additional pool block, this fixes bus error on sun4v
author Igor Sysoev <igor@sysoev.ru>
date Thu, 06 Nov 2008 16:14:24 +0000
parents 25add486e7aa
children 3983e673cd40
comparison
equal deleted inserted replaced
2288:c28e47fb834c 2289:857c161d2768
169 169
170 new->d.end = m + psize; 170 new->d.end = m + psize;
171 new->d.next = NULL; 171 new->d.next = NULL;
172 172
173 m += sizeof(ngx_pool_data_t); 173 m += sizeof(ngx_pool_data_t);
174 m = ngx_align_ptr(m, NGX_ALIGNMENT);
174 new->d.last = m + size; 175 new->d.last = m + size;
175 176
176 current = pool->current; 177 current = pool->current;
177 178
178 for (p = current; p->d.next; p = p->d.next) { 179 for (p = current; p->d.next; p = p->d.next) {