]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: replace DEBUG_POOL_TRACING with runtime POOL_DBG_CALLER
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 09:10:33 +0000 (10:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 16:11:33 +0000 (17:11 +0100)
commit0271822f17c05f1cec833b2ec325647725426ff3
tree8295a50d75e1becf4c536513dc3cbf9a27c1d80d
parent42705d06b71afdd9418675ab895ec1f109d530af
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.
include/haproxy/pool-t.h
include/haproxy/pool.h
src/pool.c