зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1365191 - Remove #if 0 sections in mozjemalloc. r=njn
--HG-- extra : rebase_source : 71ff171980a1e8d629230d1d92709f0abb78199c
This commit is contained in:
Родитель
fa0c122cf9
Коммит
7696439eba
|
@ -187,9 +187,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>
|
||||
|
@ -446,46 +443,6 @@ static pthread_key_t tlsIndex;
|
|||
# define SIZEOF_PTR_2POW 2
|
||||
#endif
|
||||
#define PIC
|
||||
#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
|
||||
#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)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче