gecko-dev/memory/build
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
..
malloc_decls.h Bug 1389305 (attempt 2) - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium. 2017-09-01 11:52:23 +10:00
moz.build Bug 1395776 - Fold replace-malloc into mozjemalloc. r=njn 2017-08-31 12:02:01 +09:00
mozmemory_wrap.c merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-01 10:38:51 +02:00
mozmemory_wrap.h Bug 1395776 - Fold replace-malloc into mozjemalloc. r=njn 2017-08-31 12:02:01 +09:00
mozmemory.h Bug 1389305 (attempt 2) - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium. 2017-09-01 11:52:23 +10:00
replace_malloc_bridge.h
replace_malloc.h Bug 1368932 - Handle missing replace_posix_memalign at the replace-malloc level. r=njn 2017-05-31 13:47:17 +09:00
zone.c Bug 1396361 - Avoid crashing when some system library calls malloc_zone_free(zone, NULL). r=njn 2017-09-04 07:32:42 +09:00