You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix pool debugging. With lifetime or owner checks enabled, pools couldn't
even be created, except for the global pool which is a special case.
* memory/unix/apr_pools.c
(struct apr_pool_t): Add an 'unmanaged' member for pool-debug mode.
The lifetime checks must be skipped for unmanaged pools, since they
inevitably fail: apr_pool_is_child_of() expects all pools to have a
parent, which obviously is not the case for unmanaged pools.
(apr_pool_create_ex_debug): Create the pool's mutex after the parent
has been assigned, because that involves an allocation which triggers
a lifetime check which ... well, see above.
(apr_pool_create_unmanaged): Set the pool->unmanaged flag and create the
pool's mutex after the owner and allocator have been assigned. A pool
without the owner set fails the ownershhip check, and without an
allocator it's sort of hard to allocate space for the mutex.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1927658 13f79535-47bb-0310-9956-ffa450edef68
0 commit comments