]> git.kaiwu.me - haproxy.git/commit
MINOR: debug: make a pair of __BUG_ON() for modern and obsolete linkers
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Aug 2026 07:43:13 +0000 (09:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commit7756734d8799bd1c204e9a20e43e524372480d47
treeddba8e1f2fabfeae0cd36d7f48e6f80cf16b8a80
parent49f863757d5b3ecf027c10ec01a5abce4d51adcc
MINOR: debug: make a pair of __BUG_ON() for modern and obsolete linkers

The _BUG_ON() and _BUG_ON_ONCE() calls used to systematically call
__DBG_COUNT() first, then to call __BUG_ON(). Let's have a variant of
__BUG_ON() for each linker mode, that is merged with __DBG_COUNT().
The modern linker one now performs both the counting and processing
of the event at once.

For now the "once" aspect is still dependent on the expression-local
counter so that the code is exactly the same as before. The code size
didn't change.
include/haproxy/bug.h