]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: thread: set DEBUG_THREAD to 1 by default
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2025 13:57:26 +0000 (15:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2025 14:50:34 +0000 (16:50 +0200)
commit12c7189bc8e1ae8387064d909dabdee16b542ea4
tree78957f235edf2ac120a7eda5eed49795d62918eb
parentd9a659ed967cf072a65eefa3d203f76748b5b5d0
MEDIUM: thread: set DEBUG_THREAD to 1 by default

Setting DEBUG_THREAD to 1 allows recording the lock history for each
thread. Tests have shown that (as predicted) the cost of updating a
single thread-local variable is not perceptible in the noise, especially
when compared to the cost of obtaining a lock. Since this can provide
useful value when debugging deadlocks, let's enable it by default when
threads are enabled.
include/haproxy/defaults.h