Module Name:    src
Committed By:   martin
Date:           Tue Jul 23 06:31:20 UTC 2019

Modified Files:
        src/external/bsd/jemalloc/lib: Makefile.inc

Log Message:
Disable JEMALLOC_DEBUG, it served us well, but now we want performance
back. Discussed with christos.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/bsd/jemalloc/lib/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/jemalloc/lib/Makefile.inc
diff -u src/external/bsd/jemalloc/lib/Makefile.inc:1.9 src/external/bsd/jemalloc/lib/Makefile.inc:1.10
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.9	Mon Apr 15 20:40:53 2019
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Tue Jul 23 06:31:20 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.9 2019/04/15 20:40:53 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.10 2019/07/23 06:31:20 martin Exp $
 
 JEMALLOC:=${.PARSEDIR}/..
 
@@ -38,7 +38,10 @@ witness.c
 .SUFFIXES: .3
 .PATH.3: ${JEMALLOC}/dist/doc
 .for i in ${JEMALLOC_SRCS}
-CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_PROTECT_NOSTD -DJEMALLOC_DEBUG
+# helps in tracking bad malloc/pointer usage, but has a serious
+# performance penalty:
+#   CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_PROTECT_NOSTD -DJEMALLOC_DEBUG
+CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_PROTECT_NOSTD
 COPTS.${i}+= -fvisibility=hidden -funroll-loops
 COPTS.${i}+= ${${ACTIVE_CC} == "clang":? -Wno-atomic-alignment :}
 .endfor

Reply via email to