gecko-dev/memory/build
Mike Hommey b535767244 Bug 1610720 - Change moz_dispose_arena to allow to free empty arenas. r=erahm
Currently, it's expected to "lazily" dispose of the arena. That is, if
the arena still has allocations, the arena is kept around. Using it for
new allocations is an error, but otherwise, it's possible to free
allocations from there. Once it's empty, the arena is freed too. Well,
that's the idea, but that last part is not actually implemented, cf.
bug 1364359.

While that is still an (optionally) desirable disposal mode, other modes
would be useful as well. So this bug is here to switch the current mode
to something that can more easily be used for e.g. bug 1377999.

The idea is to make moz_dispose_arena() free the arena immediately, and
MOZ_CRASH if it's not already empty (on a besst effort basis).

Differential Revision: https://phabricator.services.mozilla.com/D60635

--HG--
extra : moz-landing-system : lando
2020-01-24 02:06:32 +00:00
..
fallback.cpp
Makefile.in
malloc_decls.h Bug 1610720 - Change moz_dispose_arena to allow to free empty arenas. r=erahm 2020-01-24 02:06:32 +00:00
moz.build Bug 1523276 - Implement PHC, a probabilistic heap checker. r=glandium,gsvelto 2019-07-03 09:26:11 +10:00
mozjemalloc_types.h Bug 1376408 - Randomize free region selection for small allocations in a run r=glandium 2019-06-18 21:18:23 +00:00
mozjemalloc.cpp Bug 1610720 - Change moz_dispose_arena to allow to free empty arenas. r=erahm 2020-01-24 02:06:32 +00:00
mozjemalloc.h
mozmemory_wrap.cpp Bug 1590624 - Define a __imp_ alias for _strdup for mingw-clang r=dmajor 2019-12-12 06:38:37 +00:00
mozmemory_wrap.h Bug 1559379 - Export C++ allocation functions from mozglue on all platforms. r=froydnj 2019-06-27 22:07:42 +00:00
mozmemory.h Bug 1411613 - mark certain allocation functions as non-throwing; r=glandium 2019-09-04 23:40:15 +00:00
Mutex.h
rb.h
replace_malloc_bridge.h Bug 1523276 - Implement PHC, a probabilistic heap checker. r=glandium,gsvelto 2019-07-03 09:26:11 +10:00
replace_malloc.h
Utils.h
zone.c