summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal/huge.h
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2011-07-31 00:27:02 (GMT)
committerJason Evans <jasone@canonware.com>2011-07-31 00:27:02 (GMT)
commit446c3b22f1299ff4a5549b0b36540bceda6c3beb (patch)
tree56e74b11294ca1ced74274bad05f4a153475b558 /include/jemalloc/internal/huge.h
parent5ef7abf6d846720fb3fb8c737861c99b5ad1d862 (diff)
parent4c48481e7c8f5e5dce55aa55d725e1a479b01224 (diff)
downloadjemalloc-2.2.2.zip
jemalloc-2.2.2.tar.gz
jemalloc-2.2.2.tar.bz2
Merge branch 'dev'2.2.2
Diffstat (limited to 'include/jemalloc/internal/huge.h')
-rw-r--r--include/jemalloc/internal/huge.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/jemalloc/internal/huge.h b/include/jemalloc/internal/huge.h
new file mode 100644
index 0000000..66544cf
--- /dev/null
+++ b/include/jemalloc/internal/huge.h
@@ -0,0 +1,41 @@
+/******************************************************************************/
+#ifdef JEMALLOC_H_TYPES
+
+#endif /* JEMALLOC_H_TYPES */
+/******************************************************************************/
+#ifdef JEMALLOC_H_STRUCTS
+
+#endif /* JEMALLOC_H_STRUCTS */
+/******************************************************************************/
+#ifdef JEMALLOC_H_EXTERNS
+
+#ifdef JEMALLOC_STATS
+/* Huge allocation statistics. */
+extern uint64_t huge_nmalloc;
+extern uint64_t huge_ndalloc;
+extern size_t huge_allocated;
+#endif
+
+/* Protects chunk-related data structures. */
+extern malloc_mutex_t huge_mtx;
+
+void *huge_malloc(size_t size, bool zero);
+void *huge_palloc(size_t size, size_t alignment, bool zero);
+void *huge_ralloc_no_move(void *ptr, size_t oldsize, size_t size,
+ size_t extra);
+void *huge_ralloc(void *ptr, size_t oldsize, size_t size, size_t extra,
+ size_t alignment, bool zero);
+void huge_dalloc(void *ptr, bool unmap);
+size_t huge_salloc(const void *ptr);
+#ifdef JEMALLOC_PROF
+prof_ctx_t *huge_prof_ctx_get(const void *ptr);
+void huge_prof_ctx_set(const void *ptr, prof_ctx_t *ctx);
+#endif
+bool huge_boot(void);
+
+#endif /* JEMALLOC_H_EXTERNS */
+/******************************************************************************/
+#ifdef JEMALLOC_H_INLINES
+
+#endif /* JEMALLOC_H_INLINES */
+/******************************************************************************/