函數(shù)完成了內(nèi)存池的初步分配,執(zhí)行后 pool 取值:
$23 = (ngx_pool_t *) 0x80fe9f0
(gdb) p *init_cycle.pool
$24 = {
d = {
last = 0x80fea18,
end = 0x80fedf0,
next = 0x0,
failed = 0
},
max = 984,
current = 0x80fe9f0,
chain = 0x0,
large = 0x0,
cleanup = 0x0,
log = 0x80e3020 <ngx_log>
}
如下圖所示: