Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include PR/54050: Ryo ONODERA: Add the jemalloc-specific api...



details:   https://anonhg.NetBSD.org/src/rev/8df5cefe2daa
branches:  trunk
changeset: 449508:8df5cefe2daa
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 09 03:52:10 2019 +0000

description:
PR/54050: Ryo ONODERA: Add the jemalloc-specific api prototypes and extern.

diffstat:

 include/malloc.h |  31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 7141a701d4f9 -r 8df5cefe2daa include/malloc.h
--- a/include/malloc.h  Sat Mar 09 02:56:44 2019 +0000
+++ b/include/malloc.h  Sat Mar 09 03:52:10 2019 +0000
@@ -1,3 +1,32 @@
-/*     $NetBSD: malloc.h,v 1.3 1994/10/26 00:56:03 cgd Exp $   */
+/*     $NetBSD: malloc.h,v 1.4 2019/03/09 03:52:10 christos Exp $      */
+
+#ifndef _MALLOC_H_
+#define _MALLOC_H_
 
 #include <stdlib.h>
+
+__BEGIN_DECLS
+
+void *mallocx(size_t, int);
+void *rallocx(void *, size_t, int);
+size_t xallocx(void *, size_t, size_t, int);
+size_t sallocx(void *, int);
+void dallocx(void *, int);
+void sdallocx(void *, size_t, int);
+size_t nallocx(size_t, int);
+
+int mallctl(const char *, void *, size_t *, void *, size_t);
+int mallctltomib(const char *, size_t *, size_t *);
+int mallctlbymib(const size_t *, size_t, void *, size_t *, void *, size_t);
+
+void malloc_stats_print(void (*)(void *, const char *), void *, const char *);
+
+size_t malloc_usable_size(const void *);
+
+void (*malloc_message)(void *, const char *);
+
+const char *malloc_conf;
+
+__END_DECLS
+
+#endif /* _MALLOC_H_ */



Home | Main Index | Thread Index | Old Index