]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: pools: detect that malloc_trim() is in progress
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2023 13:42:27 +0000 (15:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2023 13:48:02 +0000 (15:48 +0200)
commit96bb99a87da409c21364d38d2d429c9239ef08df
tree718ef00ae9f6e60c0dbf80c7bcc5edc19942d032
parent26a6481f007c0f8a264c6d9bca891a67780edb9b
DEBUG: pools: detect that malloc_trim() is in progress

Now when calling ha_panic() with a thread still under malloc_trim(),
we'll set a new tainted flag to easily report it, and the output
trace will report that this condition happened and will suggest to
use no-memory-trimming to avoid it in the future.
include/haproxy/bug.h
include/haproxy/pool.h
src/debug.c
src/pool.c