22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
|
--- memory/jemalloc/jemalloc.h 2010-09-14 16:14:54.000000000 +0200
|
||
|
+++ memory/jemalloc/jemalloc.h-gil 2010-10-05 00:42:25.000000000 +0200
|
||
|
@@ -42,12 +42,12 @@
|
||
|
|
||
|
/* Darwin and Linux already have memory allocation functions */
|
||
|
#if (!defined(MOZ_MEMORY_DARWIN) && !defined(MOZ_MEMORY_LINUX))
|
||
|
-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);
|
||
|
-int posix_memalign(void **memptr, size_t alignment, size_t size);
|
||
|
+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;
|
||
|
+int posix_memalign(void **memptr, size_t alignment, size_t size) __THROW __attribute_malloc__ __wur;
|
||
|
#endif /* MOZ_MEMORY_DARWIN, MOZ_MEMORY_LINUX */
|
||
|
|
||
|
#if defined(MOZ_MEMORY_ANDROID) || defined(WRAP_MALLOC)
|