Bug 788955 - Mark some jemalloc functions as weak on BSDs. r=glandium
authorJan Beich <jbeich@tormail.org>
Wed, 17 Oct 2012 16:38:43 +0200
changeset 110545 b741e9670dd0c92e40756fbcabe2e976a926cad5
parent 110544 712c7dbe7c288497f91e9386f05041de587b6a58
child 110546 3e0d9ab85a5c904da3ced1a6cb4470198dab5f7f
push id23700
push userryanvm@gmail.com
push dateThu, 18 Oct 2012 02:10:26 +0000
treeherdermozilla-central@5142bbd4da12 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs788955
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 788955 - Mark some jemalloc functions as weak on BSDs. r=glandium
memory/mozjemalloc/jemalloc.h
--- a/memory/mozjemalloc/jemalloc.h
+++ b/memory/mozjemalloc/jemalloc.h
@@ -42,24 +42,25 @@
 #else
 #define wrap(a) je_ ## a
 #endif
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#if defined(MOZ_NATIVE_JEMALLOC) || defined(MOZ_MEMORY_LINUX)
+#if defined(MOZ_NATIVE_JEMALLOC) \
+  || defined(MOZ_MEMORY_LINUX) || defined(MOZ_MEMORY_BSD)
 __attribute__((weak))
 #endif
 void	jemalloc_stats(jemalloc_stats_t *stats);
 
 /* Computes the usable size in advance. */
 #if !defined(MOZ_MEMORY_DARWIN)
-#if defined(MOZ_MEMORY_LINUX)
+#if defined(MOZ_MEMORY_LINUX) || defined(MOZ_MEMORY_BSD)
 __attribute__((weak))
 #endif
 #if defined(MOZ_JEMALLOC)
 MOZ_IMPORT_API(int) wrap(nallocm)(size_t *rsize, size_t size, int flags);
 #else
 size_t je_malloc_good_size(size_t size);
 #endif
 #endif