From c530406a950db77d3926eb15e07443c233f1abdb Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 11 May 2017 18:05:14 +0900 Subject: [PATCH] Bug 1365191 - Remove dead code hidden behind the never set NEEDS_PTHREAD_MMAP_UNALIGNED_TSD. r=njn --HG-- extra : rebase_source : 79efaa1e0922c356469655f88f86b255ccc72141 --- memory/mozjemalloc/jemalloc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c index 2ea5fa8862aa..5de4b514bcbc 100644 --- a/memory/mozjemalloc/jemalloc.c +++ b/memory/mozjemalloc/jemalloc.c @@ -5076,12 +5076,6 @@ MALLOC_OUT: pthread_atfork(_malloc_prefork, _malloc_postfork_parent, _malloc_postfork_child); #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) register_zone(); #endif