]> git.kaiwu.me - nginx.git/commit
Core: improved ngx_reset_pool() (ticket #490).
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 17 Jan 2014 02:24:53 +0000 (06:24 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 17 Jan 2014 02:24:53 +0000 (06:24 +0400)
commit0bfb68eea0f41cfbada5a0e86d525027ed2f21e4
tree03d75f09ce29d60525310b463ac348ae94b40db7
parent1ef5553644e9becd61ac7a6e5d3a673374b947a5
Core: improved ngx_reset_pool() (ticket #490).

Previously pool->current wasn't moved back to pool, resulting in blocks
not used for further allocations if pool->current was already moved at the
time of ngx_reset_pool().  Additionally, to preserve logic of moving
pool->current, the p->d.failed counters are now properly cleared.  While
here, pool->chain is also cleared.

This change is essentially a nop with current code, but generally improves
things.
src/core/ngx_palloc.c