Commit 5514c1a
committed
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-ffa450edef681 parent 34686fa commit 5514c1a
1 file changed
+38
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
603 | 604 | | |
604 | 605 | | |
605 | 606 | | |
| |||
1619 | 1620 | | |
1620 | 1621 | | |
1621 | 1622 | | |
1622 | | - | |
| 1623 | + | |
| 1624 | + | |
1623 | 1625 | | |
1624 | 1626 | | |
1625 | 1627 | | |
| |||
2063 | 2065 | | |
2064 | 2066 | | |
2065 | 2067 | | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
2066 | 2084 | | |
2067 | 2085 | | |
2068 | 2086 | | |
| |||
2086 | 2104 | | |
2087 | 2105 | | |
2088 | 2106 | | |
2089 | | - | |
2090 | | - | |
2091 | | - | |
2092 | | - | |
2093 | | - | |
2094 | | - | |
2095 | | - | |
2096 | | - | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
2101 | | - | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
2105 | 2107 | | |
2106 | 2108 | | |
2107 | 2109 | | |
| |||
2130 | 2132 | | |
2131 | 2133 | | |
2132 | 2134 | | |
| 2135 | + | |
2133 | 2136 | | |
2134 | 2137 | | |
2135 | 2138 | | |
2136 | 2139 | | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
2137 | 2158 | | |
2138 | 2159 | | |
2139 | 2160 | | |
| |||
2154 | 2175 | | |
2155 | 2176 | | |
2156 | 2177 | | |
2157 | | - | |
2158 | | - | |
2159 | | - | |
2160 | | - | |
2161 | | - | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
2165 | | - | |
2166 | | - | |
2167 | | - | |
2168 | | - | |
2169 | | - | |
2170 | | - | |
2171 | | - | |
2172 | | - | |
2173 | | - | |
2174 | | - | |
2175 | 2178 | | |
2176 | 2179 | | |
2177 | 2180 | | |
| |||
0 commit comments