gecko-dev/memory/build
Mike Hommey fcd9a5550a Bug 1361258 - Use Thread Local Storage in mozjemalloc on mac. r=erahm
NO_TLS used to be hardcoded on mac because up to 10.6, __thread was not
supported. Until recently, we still supported for 10.6, and it's not the
case anymore, so we could make mac builds use __thread.

Unfortunately, on OSX, __thread circles back calling malloc to allocate
storage on first access, so we have an infinite loop problem here.
Fortunately, pthread_keys don't have this property, so we can use that
instead. It doesn't appear to have significantly more overhead (and TLS
overhead is small anyways compared to the amount of work involved in
allocating memory with mozjemalloc).

At the same time, we uniformize the initialization sequence between
mozjemalloc and mozjemalloc+replace-malloc, such that we have less
occasions for surprises when riding the trains (replace-malloc being
nightly only), ensuring the zone registration happens at the end of
mozjemalloc's initialization.
2017-05-12 18:12:20 +09:00
..
jemalloc_config.cpp bug 1244743 - Replace MOZ_NATIVE_X with MOZ_SYSTEM_X. r=gps 2016-02-01 10:49:34 -05:00
malloc_decls.h Bug 1361258 - Add a jemalloc_thread_local_arena API with a binding for rust. r=glandium 2017-05-12 18:08:08 +09:00
moz.build Bug 1333826 - Remove SDK_FILES, SDK_LIBRARY, and related is_sdk support in the build goop, r=mshal 2017-01-30 11:24:10 -05:00
mozjemalloc_compat.c Bug 1361258 - Add a jemalloc_thread_local_arena API with a binding for rust. r=glandium 2017-05-12 18:08:08 +09:00
mozmemory.h Bug 1361258 - Add a jemalloc_thread_local_arena API with a binding for rust. r=glandium 2017-05-12 18:08:08 +09:00
mozmemory_wrap.c Bug 1294732 - Back out all of bug 1271165 as it has served its purpose. r=glandium 2016-08-23 08:45:00 -04:00
mozmemory_wrap.h Bug 1361258 - Add a jemalloc_thread_local_arena API with a binding for rust. r=glandium 2017-05-12 18:08:08 +09:00
replace_malloc.c Bug 1361258 - Add a jemalloc_thread_local_arena API with a binding for rust. r=glandium 2017-05-12 18:08:08 +09:00
replace_malloc.h Bug 1168719 - Generic replace-malloc library. r=njn 2015-06-05 10:40:58 +09:00
replace_malloc_bridge.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
zone.c Bug 1361258 - Use Thread Local Storage in mozjemalloc on mac. r=erahm 2017-05-12 18:12:20 +09:00