gecko-dev/memory
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
..
build Bug 1610720 - Change moz_dispose_arena to allow to free empty arenas. r=erahm 2020-01-24 02:06:32 +00:00
gtest Bug 1610720 - Change moz_dispose_arena to allow to free empty arenas. r=erahm 2020-01-24 02:06:32 +00:00
mozalloc Bug 1587066 - Use native abort() for ThreadSanitizer. r=jseward 2019-10-09 14:27:21 +00:00
replace Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
volatile
app.mozbuild
moz.build Bug 1562358 - Move fallible.h into MFBT. r=glandium 2019-07-10 01:51:15 +00:00
moz.configure