]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Turn MALLOC_PRODUCTION into a regular src.conf(5) option
authordim <dim@FreeBSD.org>
Sat, 5 Sep 2020 23:30:17 +0000 (23:30 +0000)
committerdim <dim@FreeBSD.org>
Sat, 5 Sep 2020 23:30:17 +0000 (23:30 +0000)
commita51f86b62ac15154d1de839fc62b1944563efb9e
tree71dfb7b14c583f6b94dc521b8e1707d5e4160edc
parentea1906d44b2bc34149e955072e94fad6574c654f
Turn MALLOC_PRODUCTION into a regular src.conf(5) option

For historical reasons, defining MALLOC_PRODUCTION in /etc/make.conf has
been used to turn off potentially expensive debug checks and statistics
gathering in the implementation of malloc(3).

It seems more consistent to turn this into a regular src.conf(5) option,
e.g. WITH_MALLOC_PRODUCTION / WITHOUT_MALLOC_PRODUCTION. This can then
be toggled similar to any other source build option, and turned on or
off by default for e.g. stable branches.

Reviewed by: imp, #manpages
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D26337
UPDATING
contrib/jemalloc/FREEBSD-diffs
contrib/jemalloc/doc/jemalloc.3
lib/libc/stdlib/jemalloc/Makefile.inc
share/man/man5/make.conf.5
share/man/man5/src.conf.5
share/mk/src.opts.mk
tools/build/options/WITHOUT_MALLOC_PRODUCTION [new file with mode: 0644]
tools/build/options/WITH_MALLOC_PRODUCTION [new file with mode: 0644]