diff options
author | Jason Evans <jasone@canonware.com> | 2014-10-30 23:18:45 -0700 |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2014-10-30 23:18:45 -0700 |
commit | cfc5706f6977a48f3b82d69cd68aa1cf8802fb8d (patch) | |
tree | b0cfebffea3d4e7e4c1642ce8ad4df16e6db52bd /include/jemalloc/internal/prof.h | |
parent | d33f834591a2459f22da7a165c524340b5fc3a0c (diff) | |
download | jemalloc-cfc5706f6977a48f3b82d69cd68aa1cf8802fb8d.tar.gz |
Miscellaneous cleanups.
Diffstat (limited to 'include/jemalloc/internal/prof.h')
-rw-r--r-- | include/jemalloc/internal/prof.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/jemalloc/internal/prof.h b/include/jemalloc/internal/prof.h index e0d5f10..e081884 100644 --- a/include/jemalloc/internal/prof.h +++ b/include/jemalloc/internal/prof.h @@ -361,10 +361,9 @@ prof_tctx_get(const void *ptr) assert(ptr != NULL); chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr); - if (likely(chunk != ptr)) { - /* Region. */ + if (likely(chunk != ptr)) ret = arena_prof_tctx_get(ptr); - } else + else ret = huge_prof_tctx_get(ptr); return (ret); @@ -379,10 +378,9 @@ prof_tctx_set(const void *ptr, prof_tctx_t *tctx) assert(ptr != NULL); chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr); - if (likely(chunk != ptr)) { - /* Region. */ + if (likely(chunk != ptr)) arena_prof_tctx_set(ptr, tctx); - } else + else huge_prof_tctx_set(ptr, tctx); } |