aboutsummaryrefslogtreecommitdiff
path: root/contrib/jemalloc
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-09-05 23:30:17 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-09-05 23:30:17 +0000
commit7d4374f65f7b3df3d2567029c510f2e1576f0f69 (patch)
tree71dfb7b14c583f6b94dc521b8e1707d5e4160edc /contrib/jemalloc
parent12cb97fb375924033c760670920c8dcb94b2f52d (diff)
downloadsrc-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 'contrib/jemalloc')
-rw-r--r--contrib/jemalloc/FREEBSD-diffs2
-rw-r--r--contrib/jemalloc/doc/jemalloc.32
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/jemalloc/FREEBSD-diffs b/contrib/jemalloc/FREEBSD-diffs
index 9e1939bfecfe..5da015086501 100644
--- a/contrib/jemalloc/FREEBSD-diffs
+++ b/contrib/jemalloc/FREEBSD-diffs
@@ -14,7 +14,7 @@ index 7fecda7c..d5ca5e86 100644
+ <option>--with-malloc-conf=abort_conf:false</option>.
+ Additionally, <option>--enable-debug</option> is enabled in development
+ versions of FreeBSD (controlled by the
-+ <constant>MALLOC_PRODUCTION</constant> make variable).</para>
++ <constant>MK_MALLOC_PRODUCTION</constant> make variable).</para>
+
</refsect1>
<refsynopsisdiv>
diff --git a/contrib/jemalloc/doc/jemalloc.3 b/contrib/jemalloc/doc/jemalloc.3
index d65166f14445..a4ea3e1f54a9 100644
--- a/contrib/jemalloc/doc/jemalloc.3
+++ b/contrib/jemalloc/doc/jemalloc.3
@@ -43,7 +43,7 @@ The following configuration options are enabled in libc\*(Aqs built\-in jemalloc
\fB\-\-with\-malloc\-conf=abort_conf:false\fR\&. Additionally,
\fB\-\-enable\-debug\fR
is enabled in development versions of FreeBSD (controlled by the
-\fBMALLOC_PRODUCTION\fR
+\fBMK_MALLOC_PRODUCTION\fR
make variable)\&.
.SH "SYNOPSIS"
.sp