diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-30 15:05:28 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-30 15:05:28 +0100 |
commit | 388073a03915ca37889f205d8df15b3c85aee965 (patch) | |
tree | 8034f4763e66ff4966dd476f8555470746cfe98c /memory/mozjemalloc/jemalloc.c | |
parent | a7878bacfdb8479ac27a8bc5cc02842dd4f49281 (diff) | |
download | UXP-388073a03915ca37889f205d8df15b3c85aee965.tar UXP-388073a03915ca37889f205d8df15b3c85aee965.tar.gz UXP-388073a03915ca37889f205d8df15b3c85aee965.tar.lz UXP-388073a03915ca37889f205d8df15b3c85aee965.tar.xz UXP-388073a03915ca37889f205d8df15b3c85aee965.zip |
Issue #1307 - Part 2: Remove disabled code blocks
Diffstat (limited to 'memory/mozjemalloc/jemalloc.c')
-rw-r--r-- | memory/mozjemalloc/jemalloc.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c index 6fccc0a03..7228515e6 100644 --- a/memory/mozjemalloc/jemalloc.c +++ b/memory/mozjemalloc/jemalloc.c @@ -181,9 +181,6 @@ #if defined(MOZ_MEMORY_LINUX) && !defined(MOZ_MEMORY_ANDROID) #define _GNU_SOURCE /* For mremap(2). */ -#if 0 /* Enable in order to test decommit code on Linux. */ -# define MALLOC_DECOMMIT -#endif #endif #include <sys/types.h> @@ -440,46 +437,6 @@ void *_mmap(void *addr, size_t length, int prot, int flags, #ifdef MOZ_MEMORY_DARWIN # define NO_TLS #endif -#if 0 -#ifdef __i386__ -# define QUANTUM_2POW_MIN 4 -# define SIZEOF_PTR_2POW 2 -# define CPU_SPINWAIT __asm__ volatile("pause") -#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 -#ifdef __sparc64__ -# 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) |