diff options
author | David Goldblatt <davidgoldblatt@fb.com> | 2017-05-30 17:45:37 (GMT) |
---|---|---|
committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2017-05-31 20:08:45 (GMT) |
commit | 8261e581be517f4fe193ead2c9b662717d9ca5e0 (patch) | |
tree | 4dbd5e4a2f434e23d29494c6f7821eedd44b3b78 /include/jemalloc/internal/prof_inlines_b.h | |
parent | 041e041e1f23a03d1019330c8401a01285feb44f (diff) | |
download | jemalloc-8261e581be517f4fe193ead2c9b662717d9ca5e0.zip jemalloc-8261e581be517f4fe193ead2c9b662717d9ca5e0.tar.gz jemalloc-8261e581be517f4fe193ead2c9b662717d9ca5e0.tar.bz2 |
Header refactoring: Pull size helpers out of jemalloc module.
Diffstat (limited to 'include/jemalloc/internal/prof_inlines_b.h')
-rw-r--r-- | include/jemalloc/internal/prof_inlines_b.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/jemalloc/internal/prof_inlines_b.h b/include/jemalloc/internal/prof_inlines_b.h index fba7b99..d670cb7 100644 --- a/include/jemalloc/internal/prof_inlines_b.h +++ b/include/jemalloc/internal/prof_inlines_b.h @@ -1,6 +1,8 @@ #ifndef JEMALLOC_INTERNAL_PROF_INLINES_B_H #define JEMALLOC_INTERNAL_PROF_INLINES_B_H +#include "jemalloc/internal/sz.h" + JEMALLOC_ALWAYS_INLINE bool prof_active_get_unlocked(void) { /* @@ -113,7 +115,7 @@ prof_alloc_prep(tsd_t *tsd, size_t usize, bool prof_active, bool update) { prof_tdata_t *tdata; prof_bt_t bt; - assert(usize == s2u(usize)); + assert(usize == sz_s2u(usize)); if (!prof_active || likely(prof_sample_accum_update(tsd, usize, update, &tdata))) { |