gecko-dev/memory
Mike Hommey acb85e2b41 Bug 1396361 - Avoid crashing when some system library calls malloc_zone_free(zone, NULL). r=njn
Some system libraries call malloc_zone_free directly instead of free,
and sometimes they do that with the wrong zone. When that happens, we
circle back, trying to find the right zone, and call malloc_zone_free
with the right one, but when we can't find one, we crash, which matches
what the system free() would do. Except in one case where the pointer
we're being passed is NULL, in which case we can't trace it back to any
zone, but shouldn't crash (system free() explicitly doesn't crash in
that case).

--HG--
extra : rebase_source : 17efdcd80f1a53be7ab6b7293bfb6060a9aa4a48
2017-09-04 07:32:42 +09:00
..
build Bug 1396361 - Avoid crashing when some system library calls malloc_zone_free(zone, NULL). r=njn 2017-09-04 07:32:42 +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 1389305 (attempt 2) - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium. 2017-09-01 11:52:23 +10:00
mozjemalloc Bug 1395776 - Make _recalloc, _expand and _msize go through replace-malloc when enabled. r=njn 2017-08-31 14:17:49 +09:00
replace Bug 1389305 (attempt 2) - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium. 2017-09-01 11:52:23 +10: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 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00