Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk sun2 and vax have no native TLS support, so avoid u...



details:   https://anonhg.NetBSD.org/src/rev/54dabfa6fef3
branches:  trunk
changeset: 1010791:54dabfa6fef3
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Jun 06 22:06:42 2020 +0000

description:
sun2 and vax have no native TLS support, so avoid using modern jemalloc
as it has a couple of nasty race conditions when using TSD.

diffstat:

 share/mk/bsd.own.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 4f6e44760ac3 -r 54dabfa6fef3 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sat Jun 06 21:45:07 2020 +0000
+++ b/share/mk/bsd.own.mk       Sat Jun 06 22:06:42 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.1198 2020/06/02 14:26:01 jmcneill Exp $
+#      $NetBSD: bsd.own.mk,v 1.1199 2020/06/06 22:06:42 joerg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -181,7 +181,11 @@
 # What version of jemalloc we use (100 is the one
 # built-in to libc from 2005 (pre version 3).
 #
+.if ${MACHINE_ARCH} == "vax" || ${MACHINE} == "sun2"
+HAVE_JEMALLOC?=                100
+.else
 HAVE_JEMALLOC?=                510
+.endif
 
 .if empty(.MAKEFLAGS:tW:M*-V .OBJDIR*)
 .if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR)



Home | Main Index | Thread Index | Old Index