From a3b11d2747d66bed3f6393dfdb2fb98bf7d562d9 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 16 Feb 2012 09:02:25 +0100 Subject: [PATCH] Bug 727202 - Wrap malloc and free to use jemalloc in GeckoAppShell.{allocate,free}DirectBuffer. r=blassey --- mozglue/android/nsGeckoUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozglue/android/nsGeckoUtils.cpp b/mozglue/android/nsGeckoUtils.cpp index 59487842c7d..2dfa0dca9e1 100644 --- a/mozglue/android/nsGeckoUtils.cpp +++ b/mozglue/android/nsGeckoUtils.cpp @@ -36,6 +36,9 @@ * ***** END LICENSE BLOCK ***** */ #include +// Wrap malloc and free to use jemalloc +#define malloc __wrap_malloc +#define free __wrap_free #include extern "C"