mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1559379 - Remove GCC ASAN workaround that seems to be unnecessary nowadays. r=froydnj
Bug 1147248 added the workaround for GCC 4.9, but from an attempt with GCC 6, it seems unnecessary anymore. Differential Revision: https://phabricator.services.mozilla.com/D36165 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
5991adb988
commit
d02ba318e0
@ -132,15 +132,8 @@ MOZ_END_EXTERN_C
|
|||||||
# define MOZALLOC_EXPORT_NEW
|
# define MOZALLOC_EXPORT_NEW
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
MOZALLOC_EXPORT_NEW
|
MOZALLOC_EXPORT_NEW MOZ_ALWAYS_INLINE_EVEN_DEBUG void* operator new(
|
||||||
# if defined(__GNUC__) && !defined(__clang__) && defined(__SANITIZE_ADDRESS__)
|
size_t size) noexcept(false) {
|
||||||
/* gcc's asan somehow doesn't like always_inline on this function. */
|
|
||||||
__attribute__((gnu_inline)) inline
|
|
||||||
# else
|
|
||||||
MOZ_ALWAYS_INLINE_EVEN_DEBUG
|
|
||||||
# endif
|
|
||||||
void*
|
|
||||||
operator new(size_t size) noexcept(false) {
|
|
||||||
return moz_xmalloc(size);
|
return moz_xmalloc(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user