]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
jemalloc: restore JEMALLOC_DEBUG when building WITHOUT_MALLOC_PRODUCTION
authorKyle Evans <kevans@FreeBSD.org>
Fri, 22 Jan 2021 23:13:42 +0000 (17:13 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 22 Jan 2021 23:13:42 +0000 (17:13 -0600)
commit1c9891b8df63f146bd9515e11f45384bc40d0ef4
treebb15151f2572364f434b3fa896420f8dcd560c22
parent035f4ea71e6bef713c06e1fece48518f9a47441c
jemalloc: restore JEMALLOC_DEBUG when building WITHOUT_MALLOC_PRODUCTION

The default for MALLOC_PRODUCTION was switched to ON in 02611ef8ee9f.  This
effectively reverts the jemalloc header change from bfd15705156b so that
the knob behaves exactly as it does on a -CURRENT; that is, we are
effectively doing:

WITH_MALLOC_PRODUCTION -> -DMALLOC_PRODUCTION (default for stable/* and on)
WITHOUT_MALLOC_PRODUCTION -> -DJEMALLOC_DEBUG (default for main)

This allows the knob to be used for debugging on stable branches, too, which
is believed to be the main reason one would want to twist it off.

(direct commit)
contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h