mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
29524a9451
Setting MALLOC_XMALLOC enables a runtime toggle that allows to make allocations abort() on OOM instead of returning NULL. In other words, it enables a toggle that allows to turn all allocations into infallible allocations. The toggle however still defaults to being disabled, which means even when MALLOC_XMALLOC is defined when building mozjemalloc, there is no change in behavior, unless a MALLOC_OPTIONS is set. Even if this were useful to anyone (MALLOC_XMALLOC is only defined on debug builds, limiting the usefulness), this is something replace-malloc, in Firefox, is meant to be used for. So let's remove this feature, and possibly add an equivalent replace-malloc later if deemed necessary. --HG-- extra : rebase_source : 1ccc893e9a8e842c3fa90e91f076a528df2f7dfe |
||
---|---|---|
.. | ||
build | ||
fallible | ||
gtest | ||
mozalloc | ||
mozjemalloc | ||
replace | ||
volatile | ||
moz.build |