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 110677 b741e9670dd0c92e40756fbcabe2e976a926cad5
parent 110676 712c7dbe7c288497f91e9386f05041de587b6a58
child 110678 3e0d9ab85a5c904da3ced1a6cb4470198dab5f7f
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersglandium
bugs788955
milestone19.0a1
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