commit | 0271822f17c05f1cec833b2ec325647725426ff3 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Feb 23 10:10:33 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Feb 23 17:11:33 2022 +0100 |
tree | 8295a50d75e1becf4c536513dc3cbf9a27c1d80d | |
parent | 42705d06b71afdd9418675ab895ec1f109d530af [diff] |
MINOR: pools: replace DEBUG_POOL_TRACING with runtime POOL_DBG_CALLER This option used to allow to store a pointer to the caller of the last pool_alloc() or pool_free() at the end of the area. Now that we can compute the offsets at runtime, let's check it at run time and continue the code simplification. In __pool_alloc() we now always calculate the return address (which is quite cheap), and the POOL_DEBUG_TRACE_CALLER() calls are conditionned on the status of debugging option.