diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-09-05 23:30:17 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-09-05 23:30:17 +0000 |
commit | 7d4374f65f7b3df3d2567029c510f2e1576f0f69 (patch) | |
tree | 71dfb7b14c583f6b94dc521b8e1707d5e4160edc /tools/build | |
parent | 12cb97fb375924033c760670920c8dcb94b2f52d (diff) | |
download | src-7d4374f65f7b3df3d2567029c510f2e1576f0f69.tar.gz src-7d4374f65f7b3df3d2567029c510f2e1576f0f69.zip |
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
Notes
Notes:
svn path=/head/; revision=365371
Diffstat (limited to 'tools/build')
-rw-r--r-- | tools/build/options/WITHOUT_MALLOC_PRODUCTION | 5 | ||||
-rw-r--r-- | tools/build/options/WITH_MALLOC_PRODUCTION | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/build/options/WITHOUT_MALLOC_PRODUCTION b/tools/build/options/WITHOUT_MALLOC_PRODUCTION new file mode 100644 index 000000000000..c2ab449a0c56 --- /dev/null +++ b/tools/build/options/WITHOUT_MALLOC_PRODUCTION @@ -0,0 +1,5 @@ +.\" $FreeBSD$ +Set to enable assertions and statistics gathering in +.Xr malloc 3 . +It also defaults the A and J runtime options to on. +Enabled by default on -CURRENT. diff --git a/tools/build/options/WITH_MALLOC_PRODUCTION b/tools/build/options/WITH_MALLOC_PRODUCTION new file mode 100644 index 000000000000..f6ef3f7fef73 --- /dev/null +++ b/tools/build/options/WITH_MALLOC_PRODUCTION @@ -0,0 +1,5 @@ +.\" $FreeBSD$ +Set to disable assertions and statistics gathering in +.Xr malloc 3 . +It also defaults the A and J runtime options to off. +Disabled by default on -CURRENT. |