MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ngx_pnalloc

Function ngx_pnalloc

app/nginx-1.28.0/src/core/ngx_palloc.c:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134
135void *
136ngx_pnalloc(ngx_pool_t *pool, size_t size)
137{
138#if !(NGX_DEBUG_PALLOC)
139 if (size <= pool->max) {
140 return ngx_palloc_small(pool, size, 0);
141 }
142#endif
143
144 return ngx_palloc_large(pool, size);
145}
146
147
148static ngx_inline void *

Calls 2

ngx_palloc_smallFunction · 0.85
ngx_palloc_largeFunction · 0.85

Tested by

no test coverage detected