]> git.kaiwu.me - haproxy.git/commit
DEBUG: pools: always record the caller for uncached allocs as well
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Sep 2023 13:01:55 +0000 (15:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Sep 2023 13:19:49 +0000 (15:19 +0200)
commitbaf20704217960c8c3dd150c7ab3ab20411b9424
treef83dfed71c61d0fbc3642dfa9087cf0a0bf5d425
parent2dedbe76c9d2980e3892abcf8ab94d5c6a43815d
DEBUG: pools: always record the caller for uncached allocs as well

When recording the caller of a pool_alloc(), we currently store it only
when the object comes from the cache and never when it comes from the
heap. There's no valid reason for this except that the caller's pointer
was not passed to pool_alloc_nocache(), so it used to set NULL there.
Let's just pass it down the chain.
include/haproxy/pool.h
src/dynbuf.c
src/pool.c