mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:07:52 +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
|
||||
# endif
|
||||
|
||||
MOZALLOC_EXPORT_NEW
|
||||
# if defined(__GNUC__) && !defined(__clang__) && defined(__SANITIZE_ADDRESS__)
|
||||
/* 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) {
|
||||
MOZALLOC_EXPORT_NEW MOZ_ALWAYS_INLINE_EVEN_DEBUG void* operator new(
|
||||
size_t size) noexcept(false) {
|
||||
return moz_xmalloc(size);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user