use ngx_pmemalign() to allocate radix pages

This commit is contained in:
Igor Sysoev 2008-09-01 13:52:55 +00:00
parent fcb5a705dd
commit f4423eb7b5

View File

@ -274,7 +274,7 @@ ngx_radix_alloc(ngx_radix_tree_t *tree)
}
if (tree->size < sizeof(ngx_radix_node_t)) {
tree->start = ngx_palloc(tree->pool, ngx_pagesize);
tree->start = ngx_pmemalign(tree->pool, ngx_pagesize, ngx_pagesize);
if (tree->start == NULL) {
return NULL;
}