]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: enable both DEBUG_STRICT and DEBUG_MEMORY_POOLS by default
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 16:50:37 +0000 (17:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 17:14:49 +0000 (18:14 +0100)
commit8de7f2822b6d7bfdac83fa04c434e76f7a9fd4b0
tree1417da248524ef8aec27f5e3fc4b49125764c1bb
parentf4b79c4a01d0dc28c28a5da6abfa1e62e682c54e
BUILD: makefile: enable both DEBUG_STRICT and DEBUG_MEMORY_POOLS by default

The first one will enable all currently deployed BUG_ON() checks. These
ones are safe from a performance perspective and from a reliability
perspective. New ones may be added later with different categories
(hot path, detection of uncertain events, etc).

DEBUG_MEMORY_POOLS enables the "tag" pool debugging option by default,
so that pools may be better traced in dumps. This one alone results in
almost imperceptible performance difference, and 8 extra bytes per
allocated object.

Both options are safe for production use (they're among those enabled
all the time on haproxy.org) and allow to produce much more trustable
bug reports which should save a few round trips with the reporters.
Makefile