Bug 762446 - Hook jemalloc's abort. r=jlebar

This commit is contained in:
Mike Hommey 2012-06-11 08:12:40 +02:00
parent 80815c17fd
commit 43ce5971a1
2 changed files with 8 additions and 0 deletions

View File

@ -107,4 +107,10 @@ _je_malloc_message(void *cbopaque, const char *s)
void (*je_malloc_message)(void *, const char *s) = _je_malloc_message;
#endif
#include <mozilla/Assertions.h>
void moz_abort() {
MOZ_CRASH();
}
#endif /* MOZ_JEMALLOC */

View File

@ -45,3 +45,5 @@ endif
ifdef GNU_CC
CFLAGS += -std=gnu99
endif
DEFINES += -Dabort=moz_abort