summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-04-07 14:34:26 (GMT)
committerJason Evans <jasone@canonware.com>2016-06-03 19:27:41 (GMT)
commit9aea58d9a242ac6d1623aa1c1fcd737823e5e51b (patch)
tree54b29fc10f50e93ee2fe6f8093ef35e4a84bd457 /include
parentd78846c98978ea439c2514638de69be6d3d86a11 (diff)
downloadjemalloc-9aea58d9a242ac6d1623aa1c1fcd737823e5e51b.zip
jemalloc-9aea58d9a242ac6d1623aa1c1fcd737823e5e51b.tar.gz
jemalloc-9aea58d9a242ac6d1623aa1c1fcd737823e5e51b.tar.bz2
Add extent_past_get().
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/extent.h8
-rw-r--r--include/jemalloc/internal/private_symbols.txt1
2 files changed, 9 insertions, 0 deletions
diff --git a/include/jemalloc/internal/extent.h b/include/jemalloc/internal/extent.h
index d7db49d..d6376d5 100644
--- a/include/jemalloc/internal/extent.h
+++ b/include/jemalloc/internal/extent.h
@@ -77,6 +77,7 @@ rb_proto(, extent_tree_ad_, extent_tree_t, extent_t)
arena_t *extent_arena_get(const extent_t *extent);
void *extent_addr_get(const extent_t *extent);
size_t extent_size_get(const extent_t *extent);
+void *extent_past_get(const extent_t *extent);
bool extent_active_get(const extent_t *extent);
bool extent_zeroed_get(const extent_t *extent);
bool extent_committed_get(const extent_t *extent);
@@ -119,6 +120,13 @@ extent_size_get(const extent_t *extent)
return (extent->e_size);
}
+JEMALLOC_INLINE void *
+extent_past_get(const extent_t *extent)
+{
+
+ return ((void *)(uintptr_t)extent->e_addr + extent->e_size);
+}
+
JEMALLOC_INLINE bool
extent_active_get(const extent_t *extent)
{
diff --git a/include/jemalloc/internal/private_symbols.txt b/include/jemalloc/internal/private_symbols.txt
index 23c206b..f81cecc 100644
--- a/include/jemalloc/internal/private_symbols.txt
+++ b/include/jemalloc/internal/private_symbols.txt
@@ -216,6 +216,7 @@ extent_committed_set
extent_dirty_insert
extent_dirty_remove
extent_init
+extent_past_get
extent_prof_tctx_get
extent_prof_tctx_set
extent_size_get