Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153691766
D26337.id76702.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D26337.id76702.diff
View Options
Index: head/UPDATING
===================================================================
--- head/UPDATING
+++ head/UPDATING
@@ -22,9 +22,9 @@
debugging flags in userland, and various verbose features in the
kernel. Many developers choose to disable these features on build
machines to maximize performance. (To completely disable malloc
- debugging, define MALLOC_PRODUCTION in /etc/make.conf, or to merely
- disable the most expensive debugging functionality run
- "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
+ debugging, define WITH_MALLOC_PRODUCTION in /etc/src.conf and rebuild
+ world, or to merely disable the most expensive debugging functionality
+ at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
20200824:
OpenZFS support has been integrated. Do not upgrade root pools until
Index: head/contrib/jemalloc/FREEBSD-diffs
===================================================================
--- head/contrib/jemalloc/FREEBSD-diffs
+++ head/contrib/jemalloc/FREEBSD-diffs
@@ -14,7 +14,7 @@
+ <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>
Index: head/contrib/jemalloc/doc/jemalloc.3
===================================================================
--- head/contrib/jemalloc/doc/jemalloc.3
+++ head/contrib/jemalloc/doc/jemalloc.3
@@ -43,7 +43,7 @@
\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
Index: head/lib/libc/stdlib/jemalloc/Makefile.inc
===================================================================
--- head/lib/libc/stdlib/jemalloc/Makefile.inc
+++ head/lib/libc/stdlib/jemalloc/Makefile.inc
@@ -45,6 +45,6 @@
jemalloc.3 nallocx.3 \
jemalloc.3 malloc.conf.5
-.if defined(MALLOC_PRODUCTION)
+.if ${MK_MALLOC_PRODUCTION} != "no"
CFLAGS+= -DMALLOC_PRODUCTION
.endif
Index: head/share/man/man5/make.conf.5
===================================================================
--- head/share/man/man5/make.conf.5
+++ head/share/man/man5/make.conf.5
@@ -401,12 +401,6 @@
and allow access over FireWire(IEEE1394) using
.Xr dconschat 8 .
Currently, only i386 and amd64 are supported.
-.It Va MALLOC_PRODUCTION
-.Pq Vt bool
-Set this 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.
.It Va MAN_ARCH
.Pq Vt str
Space-delimited list of one or more MACHINE and/or MACHINE_ARCH values
Index: head/share/man/man5/src.conf.5
===================================================================
--- head/share/man/man5/src.conf.5
+++ head/share/man/man5/src.conf.5
@@ -1,6 +1,6 @@
.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
.\" $FreeBSD$
-.Dd July 6, 2020
+.Dd September 5, 2020
.Dt SRC.CONF 5
.Os
.Sh NAME
@@ -1104,6 +1104,11 @@
See
.Xr tests 7
for more details.
+.It Va WITH_MALLOC_PRODUCTION
+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.
.It Va WITHOUT_MAN
Set to not build manual pages.
When set, these options are also in effect:
@@ -1278,12 +1283,12 @@
Set to not build LLVM's OpenMP runtime.
.Pp
This is a default setting on
-arm/armv6, arm/armv7, arm64/aarch64, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
+arm/armv6, arm/armv7, mips/mips, mips/mips64, powerpc/powerpc, riscv/riscv64 and riscv/riscv64sf.
.It Va WITH_OPENMP
Set to build LLVM's OpenMP runtime.
.Pp
This is a default setting on
-amd64/amd64, i386/i386 and powerpc/powerpc64.
+amd64/amd64, arm64/aarch64, i386/i386 and powerpc/powerpc64.
.It Va WITHOUT_OPENSSH
Set to not build OpenSSH.
.It Va WITHOUT_OPENSSL
Index: head/share/mk/src.opts.mk
===================================================================
--- head/share/mk/src.opts.mk
+++ head/share/mk/src.opts.mk
@@ -213,6 +213,7 @@
LOADER_FORCE_LE \
LOADER_VERBOSE \
LOADER_VERIEXEC_PASS_MANIFEST \
+ MALLOC_PRODUCTION \
OFED_EXTRA \
OPENLDAP \
REPRODUCIBLE_BUILD \
Index: head/tools/build/options/WITHOUT_MALLOC_PRODUCTION
===================================================================
--- head/tools/build/options/WITHOUT_MALLOC_PRODUCTION
+++ head/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.
Index: head/tools/build/options/WITH_MALLOC_PRODUCTION
===================================================================
--- head/tools/build/options/WITH_MALLOC_PRODUCTION
+++ head/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.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 11:25 PM (1 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32037973
Default Alt Text
D26337.id76702.diff (5 KB)
Attached To
Mode
D26337: Turn MALLOC_PRODUCTION into a regular src.conf(5) option
Attached
Detach File
Event Timeline
Log In to Comment