summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal/extent.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/extent.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/extent.h')
-rw-r--r--include/jemalloc/internal/extent.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/include/jemalloc/internal/extent.h b/include/jemalloc/internal/extent.h
new file mode 100644
index 0000000..6fe9702
--- /dev/null
+++ b/include/jemalloc/internal/extent.h
@@ -0,0 +1,49 @@
+/******************************************************************************/
+#ifdef JEMALLOC_H_TYPES
+
+typedef struct extent_node_s extent_node_t;
+
+#endif /* JEMALLOC_H_TYPES */
+/******************************************************************************/
+#ifdef JEMALLOC_H_STRUCTS
+
+/* Tree of extents. */
+struct extent_node_s {
+#if (defined(JEMALLOC_SWAP) || defined(JEMALLOC_DSS))
+ /* Linkage for the size/address-ordered tree. */
+ rb_node(extent_node_t) link_szad;
+#endif
+
+ /* Linkage for the address-ordered tree. */
+ rb_node(extent_node_t) link_ad;
+
+#ifdef JEMALLOC_PROF
+ /* Profile counters, used for huge objects. */
+ prof_ctx_t *prof_ctx;
+#endif
+
+ /* Pointer to the extent that this tree node is responsible for. */
+ void *addr;
+
+ /* Total region size. */
+ size_t size;
+};
+typedef rb_tree(extent_node_t) extent_tree_t;
+
+#endif /* JEMALLOC_H_STRUCTS */
+/******************************************************************************/
+#ifdef JEMALLOC_H_EXTERNS
+
+#if (defined(JEMALLOC_SWAP) || defined(JEMALLOC_DSS))
+rb_proto(, extent_tree_szad_, extent_tree_t, extent_node_t)
+#endif
+
+rb_proto(, extent_tree_ad_, extent_tree_t, extent_node_t)
+
+#endif /* JEMALLOC_H_EXTERNS */
+/******************************************************************************/
+#ifdef JEMALLOC_H_INLINES
+
+#endif /* JEMALLOC_H_INLINES */
+/******************************************************************************/
+