mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
use ngx_pmemalign() to allocate radix pages
This commit is contained in:
parent
fcb5a705dd
commit
f4423eb7b5
@ -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…
Reference in New Issue
Block a user