gecko-dev/memory
Mike Hommey 79eba188f7 Bug 1409273 - Replace malloc_mutex_* with class methods. r=njn
Ideally, we'd be reusing some Mutex class we have in Gecko, the base one
in mozglue/misc being the best candidate. However, the contraints in
mozjemalloc make that unconvenient:
- Can't have a constructor because malloc_init() would likely run before
  it, and that would mean the mutexes would be re-initialized.
- Can't have a destructor because code will run after static
  destructors, and some of that code likely will invoke the allocator,
  and we can't have destructed mutexes by then.
- Can't use pthread_mutex on OSX because that loops back into the
  allocator.

Accomodating the use of Gecko mutexes around those constraints would
mean much more code than just implementing a new mutex class, so the
latter is preferred.

--HG--
extra : rebase_source : d2e180a5007390c620aa6d7921340b9784c7699f
2017-10-06 17:20:04 +09:00
..
build Bug 1409273 - Replace malloc_mutex_* with class methods. r=njn 2017-10-06 17:20:04 +09:00
fallible Bug 1290645 - Remove VS2013 workarounds in memory/. r=glandium 2016-07-28 11:46:30 -07:00
gtest Bug 1389305 (attempt 2) - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium. 2017-09-01 11:52:23 +10:00
mozalloc Bug 1406197 Declare sized deallocators (that ignore the size) to correct a MinGW warning r=glandium 2017-10-10 13:16:10 -05:00
replace Bug 1384814 - Remove critical address machinery from Mac implementation of MozStackWalk(). r=glandium. 2017-10-03 13:53:14 +11:00
volatile Bug 1392594 Make variable DebugOnly to address unused variable warning r=glandium 2017-08-24 22:55:35 -05:00
moz.build Bug 1407468 - Replace multiple !JS_STANDALONE with MOZ_WIDGET_TOOLKIT. r=mshal 2017-10-05 14:50:01 +09:00