Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 25 lines (22 sloc) 1.076 kB
d1fdce2 @remicollet import sunbird (for thunderbird-lightning)
authored
1 diff -r f1af606531f5 memory/jemalloc/jemalloc.h
2 --- mozilla/memory/jemalloc/jemalloc.h Sat Nov 22 20:22:22 2008 +0100
3 +++ mozilla/memory/jemalloc/jemalloc.h Mon Dec 01 16:53:06 2008 -0500
4 @@ -45,14 +45,14 @@
5 } jemalloc_stats_t;
6
7 #ifndef MOZ_MEMORY_DARWIN
8 -void *malloc(size_t size);
9 -void *valloc(size_t size);
10 -void *calloc(size_t num, size_t size);
11 -void *realloc(void *ptr, size_t size);
12 -void free(void *ptr);
13 +void *malloc(size_t size) __THROW __attribute_malloc__ __wur;
14 +void *valloc(size_t size) __THROW __attribute_malloc__ __wur;
15 +void *calloc(size_t num, size_t size) __THROW __attribute_malloc__ __wur;
16 +void *realloc(void *ptr, size_t size) __THROW __attribute_malloc__ __wur;
17 +void free(void *ptr) __THROW __attribute_malloc__ __wur;
18 #endif
19
20 -int posix_memalign(void **memptr, size_t alignment, size_t size);
21 +int posix_memalign(void **memptr, size_t alignment, size_t size) __THROW __attribute_malloc__ __wur;
22 void *memalign(size_t alignment, size_t size);
23 size_t malloc_usable_size(const void *ptr);
24 void jemalloc_stats(jemalloc_stats_t *stats);
Something went wrong with that request. Please try again.