From: Willy Tarreau Date: Wed, 23 Feb 2022 16:50:37 +0000 (+0100) Subject: BUILD: makefile: enable both DEBUG_STRICT and DEBUG_MEMORY_POOLS by default X-Git-Tag: v2.6-dev2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de7f2822;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/Makefile b/Makefile index b97bbf5c9f..212cb55a34 100644 --- a/Makefile +++ b/Makefile @@ -258,7 +258,7 @@ SMALL_OPTS = # DEBUG_NO_POOLS, DEBUG_FAIL_ALLOC, DEBUG_STRICT_NOCRASH, DEBUG_HPACK, # DEBUG_AUTH, DEBUG_SPOE, DEBUG_UAF, DEBUG_THREAD, DEBUG_STRICT, DEBUG_DEV, # DEBUG_TASK, DEBUG_MEMORY_POOLS, DEBUG_POOL_TRACING. -DEBUG = +DEBUG = -DDEBUG_STRICT -DDEBUG_MEMORY_POOLS #### Trace options # Use TRACE=1 to trace function calls to file "trace.out" or to stderr if not