diff --git a/memory/build/extraMallocFuncs.c b/memory/build/extraMallocFuncs.c index b024b11ab5c..fd7b60a9172 100644 --- a/memory/build/extraMallocFuncs.c +++ b/memory/build/extraMallocFuncs.c @@ -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 + +void moz_abort() { + MOZ_CRASH(); +} + #endif /* MOZ_JEMALLOC */ diff --git a/memory/jemalloc/Makefile.in b/memory/jemalloc/Makefile.in index 923d01570f5..8393f6d7d41 100644 --- a/memory/jemalloc/Makefile.in +++ b/memory/jemalloc/Makefile.in @@ -45,3 +45,5 @@ endif ifdef GNU_CC CFLAGS += -std=gnu99 endif + +DEFINES += -Dabort=moz_abort