зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4e8868dbf4
Коммит
2d3b564a8f
|
@ -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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче