]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r365371:
authorDimitry Andric <dim@FreeBSD.org>
Sat, 12 Sep 2020 16:50:04 +0000 (16:50 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 12 Sep 2020 16:50:04 +0000 (16:50 +0000)
commit0428ad50794f234e056c0625673d1cf98c5a7ade
treeec6fd730aa8339e0e8842b2b51a199c43e595bdb
parent76cc67a1458bda7c2018a0c1ca5ede70a46f85a0
MFC r365371:

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
Differential Revision: https://reviews.freebsd.org/D26337

MFC r365373:

Follow-up r365371 by removing sentences which indicate the state of the
MK_MALLOC_PRODUCTION option on -CURRENT.

Also, for the sake of backwards compatibility, support the old way of
enabling 'production malloc', e.g. by adding a define in make.conf(5).
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]