From 3b361d83096b50b4d7e22fa0561d000cdfe82bfa Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 30 Nov 2019 18:36:15 +0100 Subject: Issue #1307 - Part 6: Remove dead code behind PTHREAD_MMAP_UNALIGNED_TSD --- memory/mozjemalloc/jemalloc.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'memory/mozjemalloc') diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c index cef42e79f..d8c9a4c6e 100644 --- a/memory/mozjemalloc/jemalloc.c +++ b/memory/mozjemalloc/jemalloc.c @@ -5483,12 +5483,6 @@ MALLOC_OUT: pthread_atfork(_malloc_prefork, _malloc_postfork, _malloc_postfork); #endif -#if defined(NEEDS_PTHREAD_MMAP_UNALIGNED_TSD) - if (pthread_key_create(&mmap_unaligned_tsd, NULL) != 0) { - malloc_printf(": Error in pthread_key_create()\n"); - } -#endif - #if defined(MOZ_MEMORY_DARWIN) && !defined(MOZ_REPLACE_MALLOC) /* * Overwrite the default memory allocator to use jemalloc everywhere. -- cgit v1.2.3