Bug 829327: Mark mozalloc_abort() as MOZ_NORETURN (except on ARM, where we're pretty sure it breaks crash stacks). r=cjones

This commit is contained in:
Daniel Holbert 2013-01-11 09:29:02 -08:00
Родитель 4e8868dbf4
Коммит 2d3b564a8f
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -26,8 +26,15 @@
/**
* Terminate this process in such a way that breakpad is triggered, if
* at all possible.
*
* Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
* use that annotation there.
*/
MOZALLOC_EXPORT void mozalloc_abort(const char* const msg);
MOZALLOC_EXPORT
#if !defined(__arm__)
MOZ_NORETURN
#endif
void mozalloc_abort(const char* const msg);
#endif /* ifndef mozilla_mozalloc_abort_h */