Issue #1053 - Remove android support from memory

This commit is contained in:
Matt A. Tobin 2020-02-23 00:26:22 -05:00 committed by Roy Tam
commit f1182eaec9
15 changed files with 19 additions and 374 deletions

View file

@ -160,16 +160,7 @@ MFBT_API void* moz_xvalloc(size_t size)
# define MOZALLOC_EXPORT_NEW
#endif
#if defined(ANDROID)
/*
* It's important to always specify 'throw()' in GCC because it's used to tell
* GCC that 'new' may return null. That makes GCC null-check the result before
* potentially initializing the memory to zero.
* Also, the Android minimalistic headers don't include std::bad_alloc.
*/
#define MOZALLOC_THROW_IF_HAS_EXCEPTIONS throw()
#define MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS
#elif defined(_MSC_VER)
#if defined(_MSC_VER)
/*
* Suppress build warning spam (bug 578546).
*/