Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2021 23:25:12 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1c9891b8df63 - stable/13 - jemalloc: restore JEMALLOC_DEBUG when building WITHOUT_MALLOC_PRODUCTION
Message-ID:  <202101222325.10MNPCjq052506@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=1c9891b8df63f146bd9515e11f45384bc40d0ef4

commit 1c9891b8df63f146bd9515e11f45384bc40d0ef4
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-01-22 23:13:42 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-01-22 23:13:42 +0000

    jemalloc: restore JEMALLOC_DEBUG when building WITHOUT_MALLOC_PRODUCTION
    
    The default for MALLOC_PRODUCTION was switched to ON in 02611ef8ee9f.  This
    effectively reverts the jemalloc header change from bfd15705156b so that
    the knob behaves exactly as it does on a -CURRENT; that is, we are
    effectively doing:
    
    WITH_MALLOC_PRODUCTION -> -DMALLOC_PRODUCTION (default for stable/* and on)
    WITHOUT_MALLOC_PRODUCTION -> -DJEMALLOC_DEBUG (default for main)
    
    This allows the knob to be used for debugging on stable branches, too, which
    is believed to be the main reason one would want to twist it off.
    
    (direct commit)
---
 contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h b/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
index dfda508ea1e1..6ff0ce18d5da 100644
--- a/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
+++ b/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
@@ -5,7 +5,7 @@
 #undef JEMALLOC_OVERRIDE_VALLOC
 
 #ifndef MALLOC_PRODUCTION
-#define	MALLOC_PRODUCTION
+#define	JEMALLOC_DEBUG
 #endif
 
 #undef JEMALLOC_DSS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101222325.10MNPCjq052506>