Commit e6b872fb authored by Chris Peterson's avatar Chris Peterson
Browse files

Bug 1736968 - Pass mozalloc_abort() crash reason to MOZ_CRASH() to distinguish...

Bug 1736968 - Pass mozalloc_abort() crash reason to MOZ_CRASH() to distinguish mozalloc_abort() and bare MOZ_CRASH() crashes. r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D129114
parent 0713dc0d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,10 +27,12 @@ void mozalloc_abort(const char* const msg) {
#else
  __android_log_print(ANDROID_LOG_ERROR, "Gecko", "mozalloc_abort: %s", msg);
#endif

#ifdef MOZ_WIDGET_ANDROID
  abortThroughJava(msg);
#endif
  MOZ_CRASH();

  MOZ_CRASH_UNSAFE(msg);
}

#ifdef MOZ_WIDGET_ANDROID