gecko-dev/memory
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
..
build Bug 1361258 - Use Thread Local Storage in mozjemalloc on mac. r=erahm 2017-05-12 18:12:20 +09:00
fallible Bug 1290645 - Remove VS2013 workarounds in memory/. r=glandium 2016-07-28 11:46:30 -07:00
gtest Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn 2016-11-09 10:24:22 -08:00
jemalloc Bug 1353847 - Updated the jemalloc mozilla README to reflect its new git url r=glandium 2017-04-05 15:19:19 -04:00
mozalloc Bug 1332747 Change MOZ_ALWAYS_INLINE to MOZ_ALWAYS_INLINE_EVEN_DEBUG to fix MinGW Debug build r=froydnj 2017-04-11 12:53:58 -05:00
mozjemalloc Bug 1361258 - Use Thread Local Storage in mozjemalloc on mac. r=erahm 2017-05-12 18:12:20 +09:00
replace Bug 1361258 - Add a jemalloc_thread_local_arena API with a binding for rust. r=glandium 2017-05-12 18:08:08 +09:00
volatile Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
moz.build Bug 1344471 - add BUG_COMPONENT to memory/* files. r=glandium 2017-03-08 11:17:11 -05:00