CVS commit: src/external/bsd/jemalloc/lib

2021-08-15 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Aug 15 12:41:40 UTC 2021

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

Log Message:
jemalloc: suppress two irrelevant lint warnings


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 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.14 src/external/bsd/jemalloc/lib/Makefile.inc:1.15
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.14	Tue Jul  6 12:40:24 2021
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Sun Aug 15 12:41:40 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.14 2021/07/06 12:40:24 thorpej Exp $
+#	$NetBSD: Makefile.inc,v 1.15 2021/08/15 12:41:40 rillig Exp $
 
 JEMALLOC:=${.PARSEDIR}/..
 
@@ -44,6 +44,8 @@ witness.c
 CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_PROTECT_NOSTD
 COPTS.${i}+= -fvisibility=hidden -funroll-loops
 COPTS.${i}+= ${${ACTIVE_CC} == "clang":? -Wno-atomic-alignment :}
+LINTFLAGS.${i}+=	-X 231	# argument unused
+LINTFLAGS.${i}+=	-X 220	# fallthrough on case statement
 .endfor
 
 COPTS.background_thread.c+=-Wno-error=stack-protector



CVS commit: src/external/bsd/jemalloc/lib

2021-07-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Jul  6 12:40:25 UTC 2021

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

Log Message:
Remove -O0 hack for alpha; root cause has been addressed.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 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.13 src/external/bsd/jemalloc/lib/Makefile.inc:1.14
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.13	Wed Dec 16 01:21:32 2020
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Tue Jul  6 12:40:24 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.13 2020/12/16 01:21:32 rin Exp $
+#	$NetBSD: Makefile.inc,v 1.14 2021/07/06 12:40:24 thorpej Exp $
 
 JEMALLOC:=${.PARSEDIR}/..
 
@@ -51,14 +51,6 @@ COPTS.ctl.c+=-Wno-error=stack-protector
 COPTS.stats.c+=-Wno-error=stack-protector
 COPTS.tcache.c+=-Wno-error=stack-protector
 
-.if ${MACHINE} == "alpha" && ${ACTIVE_CC} == "gcc"
-# These files need to be compiled with -O0, or build everything with
-# -DJEMALLOC_DEBUG. Otherwise, userland binaries crash randomly, as
-# reported in port-alpha/54307.
-COPTS.rtree.c+=	-O0
-COPTS.tcache.c+=-O0
-.endif
-
 .if ${MACHINE_ARCH} == "vax"
 # in merge_overlapping_regs, at regrename.c
 COPTS.arena.c+=-O0



CVS commit: src/external/bsd/jemalloc/lib

2020-12-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Wed Dec 16 01:21:32 UTC 2020

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

Log Message:
For alpha, apply -O0 hack again to rtree.c for GCC9.
Otherwise, GDB11 crashes in strange ways.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 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.12 src/external/bsd/jemalloc/lib/Makefile.inc:1.13
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.12	Wed Oct  7 07:35:28 2020
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Wed Dec 16 01:21:32 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.12 2020/10/07 07:35:28 rin Exp $
+#	$NetBSD: Makefile.inc,v 1.13 2020/12/16 01:21:32 rin Exp $
 
 JEMALLOC:=${.PARSEDIR}/..
 
@@ -55,7 +55,7 @@ COPTS.tcache.c+=-Wno-error=stack-protect
 # These files need to be compiled with -O0, or build everything with
 # -DJEMALLOC_DEBUG. Otherwise, userland binaries crash randomly, as
 # reported in port-alpha/54307.
-COPTS.rtree.c+=	${${HAVE_GCC:U0} < 9:? -O0 :}
+COPTS.rtree.c+=	-O0
 COPTS.tcache.c+=-O0
 .endif
 



CVS commit: src/external/bsd/jemalloc/lib

2019-04-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Apr 15 20:40:53 UTC 2019

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

Log Message:
Ignore atomic alignment error for clang


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 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.8 src/external/bsd/jemalloc/lib/Makefile.inc:1.9
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.8	Fri Mar 29 11:13:44 2019
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Mon Apr 15 16:40:53 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.8 2019/03/29 15:13:44 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.9 2019/04/15 20:40:53 christos Exp $
 
 JEMALLOC:=${.PARSEDIR}/..
 
@@ -39,7 +39,8 @@ witness.c
 .PATH.3: ${JEMALLOC}/dist/doc
 .for i in ${JEMALLOC_SRCS}
 CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_PROTECT_NOSTD -DJEMALLOC_DEBUG
-COPTS.${i}+= -fvisibility=hidden -funroll-loops 
+COPTS.${i}+= -fvisibility=hidden -funroll-loops
+COPTS.${i}+= ${${ACTIVE_CC} == "clang":? -Wno-atomic-alignment :}
 .endfor
 
 COPTS.background_thread.c+=-Wno-error=stack-protector



CVS commit: src/external/bsd/jemalloc/lib

2019-03-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar 29 15:13:44 UTC 2019

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

Log Message:
Move all jemalloc symbols to the private namespace. We can't use visibility
because sun2 links statically.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 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.7 src/external/bsd/jemalloc/lib/Makefile.inc:1.8
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.7	Wed Mar 27 11:30:19 2019
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Fri Mar 29 11:13:44 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.7 2019/03/27 15:30:19 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.8 2019/03/29 15:13:44 christos Exp $
 
 JEMALLOC:=${.PARSEDIR}/..
 
@@ -38,8 +38,7 @@ witness.c
 .SUFFIXES: .3
 .PATH.3: ${JEMALLOC}/dist/doc
 .for i in ${JEMALLOC_SRCS}
-CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_NO_PRIVATE_NAMESPACE \
--DJEMALLOC_PROTECT_NOSTD -DJEMALLOC_DEBUG
+CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_PROTECT_NOSTD -DJEMALLOC_DEBUG
 COPTS.${i}+= -fvisibility=hidden -funroll-loops 
 .endfor
 



CVS commit: src/external/bsd/jemalloc/lib

2019-03-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Mar 27 15:30:19 UTC 2019

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

Log Message:
Handle vax optimizer


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 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.6 src/external/bsd/jemalloc/lib/Makefile.inc:1.7
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.6	Tue Mar 12 11:13:25 2019
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Wed Mar 27 11:30:19 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.6 2019/03/12 15:13:25 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.7 2019/03/27 15:30:19 christos Exp $
 
 JEMALLOC:=${.PARSEDIR}/..
 
@@ -48,6 +48,12 @@ COPTS.ctl.c+=-Wno-error=stack-protector
 COPTS.stats.c+=-Wno-error=stack-protector
 COPTS.tcache.c+=-Wno-error=stack-protector
 
+.if ${MACHINE_ARCH} == "vax"
+# in merge_overlapping_regs, at regrename.c
+COPTS.arena.c+=-O0
+COPTS.extent.c+=-O0
+.endif
+
 SRCS+=${JEMALLOC_SRCS}
 
 jemalloc.d jemalloc.pico jemalloc.o jemalloc.ln jemalloc.po jemalloc.go: \



CVS commit: src/external/bsd/jemalloc/lib

2019-03-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 10 15:32:42 UTC 2019

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

Log Message:
turn on debugging to help find problems.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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.4 src/external/bsd/jemalloc/lib/Makefile.inc:1.5
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.4	Sat Mar  9 21:49:52 2019
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Sun Mar 10 11:32:42 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.4 2019/03/10 02:49:52 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.5 2019/03/10 15:32:42 christos Exp $
 
 JEMALLOC:=${.PARSEDIR}/..
 
@@ -39,7 +39,7 @@ witness.c
 .PATH.3: ${JEMALLOC}/dist/doc
 .for i in ${JEMALLOC_SRCS}
 CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_NO_PRIVATE_NAMESPACE \
--DJEMALLOC_WEAK_NOSTD
+-DJEMALLOC_WEAK_NOSTD -DJEMALLOC_DEBUG
 COPTS.${i}+= -fvisibility=hidden -funroll-loops 
 .endfor
 



CVS commit: src/external/bsd/jemalloc/lib

2019-03-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar  8 20:00:21 UTC 2019

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

Log Message:
Arrange for the new man page to be installed.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 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.2 src/external/bsd/jemalloc/lib/Makefile.inc:1.3
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.2	Mon Mar  4 14:41:51 2019
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Fri Mar  8 15:00:21 2019
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile.inc,v 1.2 2019/03/04 19:41:51 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2019/03/08 20:00:21 christos Exp $
 
-JEMALLOC:=${.PARSEDIR}/../
+JEMALLOC:=${.PARSEDIR}/..
 
 JEMALLOC_SRCS+= \
 jemalloc.c \
@@ -35,6 +35,8 @@ tsd.c \
 witness.c
 
 .PATH: ${JEMALLOC}/dist/src ${JEMALLOC}/lib
+.SUFFIXES: .3
+.PATH.3: ${JEMALLOC}/dist/doc
 .for i in ${JEMALLOC_SRCS}
 CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_NO_PRIVATE_NAMESPACE
 COPTS.${i}+= -fvisibility=hidden -funroll-loops 



CVS commit: src/external/bsd/jemalloc/lib

2019-03-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  4 19:41:37 UTC 2019

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

Log Message:
bump warns


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

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
diff -u src/external/bsd/jemalloc/lib/Makefile:1.1 src/external/bsd/jemalloc/lib/Makefile:1.2
--- src/external/bsd/jemalloc/lib/Makefile:1.1	Mon Mar  4 12:29:49 2019
+++ src/external/bsd/jemalloc/lib/Makefile	Mon Mar  4 14:41:37 2019
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2019/03/04 17:29:49 christos Exp $
+# $NetBSD: Makefile,v 1.2 2019/03/04 19:41:37 christos Exp $
 
+WARNS?= 5
 .include 
 
 LIB=jemalloc



CVS commit: src/external/bsd/jemalloc/lib

2019-03-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  4 19:41:51 UTC 2019

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

Log Message:
no need to elide format-non-literal


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 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.1 src/external/bsd/jemalloc/lib/Makefile.inc:1.2
--- src/external/bsd/jemalloc/lib/Makefile.inc:1.1	Mon Mar  4 12:29:24 2019
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Mon Mar  4 14:41:51 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2019/03/04 17:29:24 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2019/03/04 19:41:51 christos Exp $
 
 JEMALLOC:=${.PARSEDIR}/../
 
@@ -42,7 +42,7 @@ COPTS.${i}+= -fvisibility=hidden -funrol
 
 COPTS.background_thread.c+=-Wno-error=stack-protector
 COPTS.ctl.c+=-Wno-error=stack-protector
-COPTS.stats.c+=-Wno-error=stack-protector -Wno-error=format-nonliteral
+COPTS.stats.c+=-Wno-error=stack-protector
 COPTS.tcache.c+=-Wno-error=stack-protector
 
 SRCS+=${JEMALLOC_SRCS}



CVS commit: src/external/bsd/jemalloc/lib

2019-03-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  4 17:26:52 UTC 2019

Added Files:
src/external/bsd/jemalloc/lib: divide.c

Log Message:
We already have div.{c,S} in libc so we call this one divide.c


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/jemalloc/lib/divide.c

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

Added files:

Index: src/external/bsd/jemalloc/lib/divide.c
diff -u /dev/null src/external/bsd/jemalloc/lib/divide.c:1.1
--- /dev/null	Mon Mar  4 12:26:52 2019
+++ src/external/bsd/jemalloc/lib/divide.c	Mon Mar  4 12:26:51 2019
@@ -0,0 +1 @@
+#include "../dist/src/div.c"



CVS commit: src/external/bsd/jemalloc/lib

2019-03-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  4 17:29:24 UTC 2019

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

Log Message:
Add glue for libc.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 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.

Added files:

Index: src/external/bsd/jemalloc/lib/Makefile.inc
diff -u /dev/null src/external/bsd/jemalloc/lib/Makefile.inc:1.1
--- /dev/null	Mon Mar  4 12:29:24 2019
+++ src/external/bsd/jemalloc/lib/Makefile.inc	Mon Mar  4 12:29:24 2019
@@ -0,0 +1,51 @@
+#	$NetBSD: Makefile.inc,v 1.1 2019/03/04 17:29:24 christos Exp $
+
+JEMALLOC:=${.PARSEDIR}/../
+
+JEMALLOC_SRCS+= \
+jemalloc.c \
+arena.c \
+background_thread.c \
+base.c \
+bin.c \
+bitmap.c \
+ckh.c \
+ctl.c \
+divide.c \
+extent.c \
+extent_dss.c \
+extent_mmap.c \
+hash.c \
+hooks.c \
+large.c \
+log.c \
+malloc_io.c \
+mutex.c \
+mutex_pool.c \
+nstime.c \
+pages.c \
+prng.c \
+prof.c \
+rtree.c \
+stats.c \
+sz.c \
+tcache.c \
+ticker.c \
+tsd.c \
+witness.c
+
+.PATH: ${JEMALLOC}/dist/src ${JEMALLOC}/lib
+.for i in ${JEMALLOC_SRCS}
+CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_NO_PRIVATE_NAMESPACE
+COPTS.${i}+= -fvisibility=hidden -funroll-loops 
+.endfor
+
+COPTS.background_thread.c+=-Wno-error=stack-protector
+COPTS.ctl.c+=-Wno-error=stack-protector
+COPTS.stats.c+=-Wno-error=stack-protector -Wno-error=format-nonliteral
+COPTS.tcache.c+=-Wno-error=stack-protector
+
+SRCS+=${JEMALLOC_SRCS}
+
+jemalloc.d jemalloc.pico jemalloc.o jemalloc.ln jemalloc.po jemalloc.go: \
+${JEMALLOC}/dist/src/jemalloc.c



CVS commit: src/external/bsd/jemalloc/lib

2019-03-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Mar  4 17:29:49 UTC 2019

Added Files:
src/external/bsd/jemalloc/lib: Makefile shlib_version

Log Message:
Add Makefiles if we want to build jemalloc standalone.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/jemalloc/lib/Makefile \
src/external/bsd/jemalloc/lib/shlib_version

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

Added files:

Index: src/external/bsd/jemalloc/lib/Makefile
diff -u /dev/null src/external/bsd/jemalloc/lib/Makefile:1.1
--- /dev/null	Mon Mar  4 12:29:49 2019
+++ src/external/bsd/jemalloc/lib/Makefile	Mon Mar  4 12:29:49 2019
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1 2019/03/04 17:29:49 christos Exp $
+
+.include 
+
+LIB=jemalloc
+
+.include "Makefile.inc"
+
+.include 
Index: src/external/bsd/jemalloc/lib/shlib_version
diff -u /dev/null src/external/bsd/jemalloc/lib/shlib_version:1.1
--- /dev/null	Mon Mar  4 12:29:49 2019
+++ src/external/bsd/jemalloc/lib/shlib_version	Mon Mar  4 12:29:49 2019
@@ -0,0 +1,3 @@
+#	$NetBSD: shlib_version,v 1.1 2019/03/04 17:29:49 christos Exp $
+major=0
+minor=0