summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2016-02-29 19:10:32 +0000
committerjasone <jasone@FreeBSD.org>2016-02-29 19:10:32 +0000
commitac01d0e42d905f1758cecc124bcf65024cb3a2d4 (patch)
tree9f2709c1ddd21e02e5ee473059251e64d3bc457f /include
parent997362c1e3a4a3c1b28833f88702375860f6a8c4 (diff)
downloadFreeBSD-src-ac01d0e42d905f1758cecc124bcf65024cb3a2d4.zip
FreeBSD-src-ac01d0e42d905f1758cecc124bcf65024cb3a2d4.tar.gz
Update jemalloc to 4.1.0.
Add missing Symbol.map entry for __aligned_alloc. Add weak-->strong symbol binding for {malloc_stats_print,mallctl,mallctlnametomib,mallctlbymib} --> {__malloc_stats_print,__mallctl,__mallctlnametomib,__mallctlbymib}. These bindings complete the set necessary to allow applications to replace all malloc-related symbols.
Diffstat (limited to 'include')
-rw-r--r--include/malloc_np.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/malloc_np.h b/include/malloc_np.h
index 24b3148..88919a4 100644
--- a/include/malloc_np.h
+++ b/include/malloc_np.h
@@ -86,6 +86,13 @@ void __free(void *ptr);
int __posix_memalign(void **ptr, size_t alignment, size_t size);
void *__aligned_alloc(size_t alignment, size_t size);
size_t __malloc_usable_size(const void *ptr);
+void __malloc_stats_print(void (*write_cb)(void *, const char *),
+ void *cbopaque, const char *opts);
+int __mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp,
+ size_t newlen);
+int __mallctlnametomib(const char *name, size_t *mibp, size_t *miblenp);
+int __mallctlbymib(const size_t *mib, size_t miblen, void *oldp,
+ size_t *oldlenp, void *newp, size_t newlen);
void *__mallocx(size_t size, int flags);
void *__rallocx(void *ptr, size_t size, int flags);
size_t __xallocx(void *ptr, size_t size, size_t extra, int flags);
OpenPOWER on IntegriCloud