diff options
author | Jason Evans <jasone@canonware.com> | 2016-02-28 04:40:13 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-02-28 04:40:13 (GMT) |
commit | 3c07f803aa282598451eb0664cc94717b769a5e6 (patch) | |
tree | 100d93baf4f36ff047c6438b7876d4e041a6ee33 /test/unit | |
parent | fd4858225b84c12e071eeeaea1fa1bce8731e409 (diff) | |
download | jemalloc-3c07f803aa282598451eb0664cc94717b769a5e6.zip jemalloc-3c07f803aa282598451eb0664cc94717b769a5e6.tar.gz jemalloc-3c07f803aa282598451eb0664cc94717b769a5e6.tar.bz2 |
Fix stats.arenas.<i>.[...] for --disable-stats case.
Add missing stats.arenas.<i>.{dss,lg_dirty_mult,decay_time}
initialization.
Fix stats.arenas.<i>.{pactive,pdirty} to read under the protection of
the arena mutex.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/mallctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/mallctl.c b/test/unit/mallctl.c index 0133351..69f8c20 100644 --- a/test/unit/mallctl.c +++ b/test/unit/mallctl.c @@ -687,8 +687,10 @@ TEST_BEGIN(test_stats_arenas) 0), 0, "Unexpected mallctl() failure"); \ } while (0) - TEST_STATS_ARENAS(const char *, dss); TEST_STATS_ARENAS(unsigned, nthreads); + TEST_STATS_ARENAS(const char *, dss); + TEST_STATS_ARENAS(ssize_t, lg_dirty_mult); + TEST_STATS_ARENAS(ssize_t, decay_time); TEST_STATS_ARENAS(size_t, pactive); TEST_STATS_ARENAS(size_t, pdirty); |