diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-30 18:37:15 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-30 18:37:15 +0100 |
commit | 75c7e4749f3a75c77077ab96a35efdaf996e3ac6 (patch) | |
tree | dcd8ca740230d0b63451d44cb3d816943c8fa8d8 | |
parent | 3b361d83096b50b4d7e22fa0561d000cdfe82bfa (diff) | |
download | UXP-75c7e4749f3a75c77077ab96a35efdaf996e3ac6.tar UXP-75c7e4749f3a75c77077ab96a35efdaf996e3ac6.tar.gz UXP-75c7e4749f3a75c77077ab96a35efdaf996e3ac6.tar.lz UXP-75c7e4749f3a75c77077ab96a35efdaf996e3ac6.tar.xz UXP-75c7e4749f3a75c77077ab96a35efdaf996e3ac6.zip |
Issue #1307 - Part 7: Add missing MALLOC_STATS
-rw-r--r-- | memory/mozjemalloc/jemalloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c index d8c9a4c6e..10bf77993 100644 --- a/memory/mozjemalloc/jemalloc.c +++ b/memory/mozjemalloc/jemalloc.c @@ -5944,6 +5944,7 @@ malloc_usable_size_impl(MALLOC_USABLE_SIZE_CONST_PTR void *ptr) return (isalloc_validate(ptr)); } +#ifdef MALLOC_STATS MOZ_JEMALLOC_API void jemalloc_stats_impl(jemalloc_stats_t *stats) { @@ -6086,7 +6087,7 @@ jemalloc_stats_impl(jemalloc_stats_t *stats) assert(stats->mapped >= stats->allocated + stats->waste + stats->page_cache + stats->bookkeeping); } - +#endif // MALLOC_STATS #ifdef MALLOC_DOUBLE_PURGE /* Explicitly remove all of this chunk's MADV_FREE'd pages from memory. */ |