Bug 1153683 - mozjemalloc: FreeBSD supports TLS on all archs. draft
authorJan Beich <jbeich@FreeBSD.org>
Fri, 12 May 2017 20:19:51 +0000
changeset 577126 332fe0957388a55cd9c1bb9c9364c1e1bb02ea52
parent 577125 64aef5a9dc01c8cf479ce08164f48f6ad793771f
child 577127 f11b65af0f37b9a4566f4a7950d7a6288b6d95d4
push id58619
push userbmo:jbeich@FreeBSD.org
push dateFri, 12 May 2017 21:48:08 +0000
bugs1153683
milestone55.0a1
Bug 1153683 - mozjemalloc: FreeBSD supports TLS on all archs. MozReview-Commit-ID: Ak85LdZZPvz
memory/mozjemalloc/jemalloc.c
--- a/memory/mozjemalloc/jemalloc.c
+++ b/memory/mozjemalloc/jemalloc.c
@@ -490,37 +490,33 @@ static pthread_key_t tlsIndex;
 #endif
 #ifdef __ia64__
 #  define QUANTUM_2POW_MIN	4
 #  define SIZEOF_PTR_2POW	3
 #endif
 #ifdef __alpha__
 #  define QUANTUM_2POW_MIN	4
 #  define SIZEOF_PTR_2POW	3
-#  define NO_TLS
 #endif
 #if defined(__sparc__) && defined(__arch64__)
 #  define QUANTUM_2POW_MIN	4
 #  define SIZEOF_PTR_2POW	3
-#  define NO_TLS
 #endif
 #ifdef __amd64__
 #  define QUANTUM_2POW_MIN	4
 #  define SIZEOF_PTR_2POW	3
 #  define CPU_SPINWAIT		__asm__ volatile("pause")
 #endif
 #ifdef __arm__
 #  define QUANTUM_2POW_MIN	3
 #  define SIZEOF_PTR_2POW	2
-#  define NO_TLS
 #endif
 #ifdef __mips__
 #  define QUANTUM_2POW_MIN	3
 #  define SIZEOF_PTR_2POW	2
-#  define NO_TLS
 #endif
 #ifdef __powerpc__
 #  define QUANTUM_2POW_MIN	4
 #  define SIZEOF_PTR_2POW	2
 #endif
 #endif
 
 #define	SIZEOF_PTR		(1U << SIZEOF_PTR_2POW)