]> git.kaiwu.me - nginx.git/commit
Core: use ngx_palloc_small() to allocate ngx_pool_large_t.
authorValentin Bartenev <vbart@nginx.com>
Wed, 23 Mar 2016 14:44:04 +0000 (17:44 +0300)
committerValentin Bartenev <vbart@nginx.com>
Wed, 23 Mar 2016 14:44:04 +0000 (17:44 +0300)
commit9d08bda415b9c987b7a3503bf5fa45cfda15df2e
tree4ac5e2585ab902d4815005b9a2411ebdc49c0a32
parent21dfe90a4e7015c0e6530208c2e6a4d8a9284ce1
Core: use ngx_palloc_small() to allocate ngx_pool_large_t.

This structure cannot be allocated as a large block anyway, otherwise that will
result in infinite recursion, since each large allocation requires to allocate
another ngx_pool_large_t.

The room for the structure is guaranteed by the NGX_MIN_POOL_SIZE constant.
src/core/ngx_palloc.c