mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
faa1eb2316
Code that uses InfallibleAllocPolicy presumably wants for operations to always succeed. However, Vector and HashTable can end up detecting that growing the data structure will fail due to integer overflow, and then will call reportAllocOverflow() and fail. I think these cases should crash. In addition, pod_malloc and pod_realloc should crash rather than returning NULL when they detect overflow. This calls mozalloc_abort rather than MOZ_CRASH directly to avoid circular #includes, because Assertions.h includes nsTraceRefcnt.h which includes nscore.h which includes mozalloc.h. MozReview-Commit-ID: 1g99BXLceQI --HG-- extra : rebase_source : 927d842588c1f85a50a7a1c50a5546d5f688555f |
||
---|---|---|
.. | ||
build | ||
fallible | ||
jemalloc | ||
mozalloc | ||
mozjemalloc | ||
replace | ||
volatile | ||
moz.build |