aboutsummaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/prof.h
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2015-02-12 14:06:37 -0800
committerJason Evans <je@fb.com>2015-02-12 14:06:37 -0800
commit88fef7ceda6269598cef0cee8b984c8765673c27 (patch)
tree80a819bbb8d8af099997ece5294fe82a3c1cbdbd /include/jemalloc/internal/prof.h
parent1eaf3b6f345e0b5835549f19e844c81314c90435 (diff)
downloadjemalloc-88fef7ceda6269598cef0cee8b984c8765673c27.tar.gz
Refactor huge_*() calls into arena internals.
Make redirects to the huge_*() API the arena code's responsibility, since arenas now take responsibility for all allocation sizes.
Diffstat (limited to 'include/jemalloc/internal/prof.h')
-rw-r--r--include/jemalloc/internal/prof.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/include/jemalloc/internal/prof.h b/include/jemalloc/internal/prof.h
index b2db685..f508243 100644
--- a/include/jemalloc/internal/prof.h
+++ b/include/jemalloc/internal/prof.h
@@ -372,34 +372,21 @@ prof_tdata_get(tsd_t *tsd, bool create)
JEMALLOC_ALWAYS_INLINE prof_tctx_t *
prof_tctx_get(const void *ptr)
{
- prof_tctx_t *ret;
- arena_chunk_t *chunk;
cassert(config_prof);
assert(ptr != NULL);
- chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
- if (likely(chunk != ptr))
- ret = arena_prof_tctx_get(ptr);
- else
- ret = huge_prof_tctx_get(ptr);
-
- return (ret);
+ return (arena_prof_tctx_get(ptr));
}
JEMALLOC_ALWAYS_INLINE void
prof_tctx_set(const void *ptr, prof_tctx_t *tctx)
{
- arena_chunk_t *chunk;
cassert(config_prof);
assert(ptr != NULL);
- chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
- if (likely(chunk != ptr))
- arena_prof_tctx_set(ptr, tctx);
- else
- huge_prof_tctx_set(ptr, tctx);
+ arena_prof_tctx_set(ptr, tctx);
}
JEMALLOC_ALWAYS_INLINE bool