Bug 1104173 - Properly export jemalloc_* symbols from the jemalloc3 replace-malloc library. r=njn

Bug 818922 made MOZ_REPLACE_MALLOC a global define, and that changed the
defines set when building mozjemalloc_compat.c for the jemalloc3
replace-malloc library. In turn, this made the symbol munging wrong for
that library, making the jemalloc_* functions exported as je_jemalloc_*
instead of replace_jemalloc_*.
This commit is contained in:
Mike Hommey 2014-11-26 16:04:25 +09:00
parent 39bb8152ff
commit e2e878c195

View File

@ -127,7 +127,7 @@
#if !defined(MOZ_NATIVE_JEMALLOC)
# ifdef MOZ_MEMORY_IMPL
# if defined(MOZ_JEMALLOC_IMPL) && defined(MOZ_REPLACE_MALLOC)
# if defined(MOZ_JEMALLOC_IMPL) && defined(MOZ_REPLACE_MALLOC) && !defined(MOZ_REPLACE_JEMALLOC)
# define mozmem_malloc_impl(a) je_ ## a
# define mozmem_jemalloc_impl(a) je_ ## a
# else