mirror of
https://github.com/nginx/nginx.git
synced 2026-10-20 19:11:05 +00:00
use ngx_pmemalign() to allocate radix pages
This commit is contained in:
parent
fcb5a705dd
commit
f4423eb7b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue