summaryrefslogtreecommitdiffstats
path: root/mozilla-jemalloc.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-06-26 07:46:49 +0200
committerRemi Collet <fedora@famillecollet.com>2010-06-26 07:46:49 +0200
commit6f77138fd8f6b6e3c0cdfbe72acc964da48cc04c (patch)
tree73082d5c987c51c21733c7649e8b50a0b81bb6b9 /mozilla-jemalloc.patch
import sunbird (for thunderbird-lightning)
Diffstat (limited to 'mozilla-jemalloc.patch')
-rw-r--r--mozilla-jemalloc.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/mozilla-jemalloc.patch b/mozilla-jemalloc.patch
new file mode 100644
index 0000000..2ef0b97
--- /dev/null
+++ b/mozilla-jemalloc.patch
@@ -0,0 +1,24 @@
+diff -r f1af606531f5 memory/jemalloc/jemalloc.h
+--- mozilla/memory/jemalloc/jemalloc.h Sat Nov 22 20:22:22 2008 +0100
++++ mozilla/memory/jemalloc/jemalloc.h Mon Dec 01 16:53:06 2008 -0500
+@@ -45,14 +45,14 @@
+ } jemalloc_stats_t;
+
+ #ifndef MOZ_MEMORY_DARWIN
+-void *malloc(size_t size);
+-void *valloc(size_t size);
+-void *calloc(size_t num, size_t size);
+-void *realloc(void *ptr, size_t size);
+-void free(void *ptr);
++void *malloc(size_t size) __THROW __attribute_malloc__ __wur;
++void *valloc(size_t size) __THROW __attribute_malloc__ __wur;
++void *calloc(size_t num, size_t size) __THROW __attribute_malloc__ __wur;
++void *realloc(void *ptr, size_t size) __THROW __attribute_malloc__ __wur;
++void free(void *ptr) __THROW __attribute_malloc__ __wur;
+ #endif
+
+-int posix_memalign(void **memptr, size_t alignment, size_t size);
++int posix_memalign(void **memptr, size_t alignment, size_t size) __THROW __attribute_malloc__ __wur;
+ void *memalign(size_t alignment, size_t size);
+ size_t malloc_usable_size(const void *ptr);
+ void jemalloc_stats(jemalloc_stats_t *stats);