summaryrefslogtreecommitdiffstats
path: root/test/unit/stats.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-09-12 03:50:20 (GMT)
committerJason Evans <jasone@canonware.com>2015-09-12 03:50:20 (GMT)
commit676df88e48ae5ab77b05d78cb511cfa2e57d277f (patch)
treeec3b61e71c8a533e319f0761fa26fb6801125507 /test/unit/stats.c
parent560a4e1e01d3733c2f107cdb3cc3580f3ed84442 (diff)
downloadjemalloc-676df88e48ae5ab77b05d78cb511cfa2e57d277f.zip
jemalloc-676df88e48ae5ab77b05d78cb511cfa2e57d277f.tar.gz
jemalloc-676df88e48ae5ab77b05d78cb511cfa2e57d277f.tar.bz2
Rename arena_maxclass to large_maxclass.
arena_maxclass is no longer an appropriate name, because arenas also manage huge allocations.
Diffstat (limited to 'test/unit/stats.c')
-rw-r--r--test/unit/stats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/stats.c b/test/unit/stats.c
index 81ef0b7..8e4bc63 100644
--- a/test/unit/stats.c
+++ b/test/unit/stats.c
@@ -42,7 +42,7 @@ TEST_BEGIN(test_stats_huge)
size_t sz;
int expected = config_stats ? 0 : ENOENT;
- p = mallocx(arena_maxclass+1, 0);
+ p = mallocx(large_maxclass+1, 0);
assert_ptr_not_null(p, "Unexpected mallocx() failure");
assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0,
@@ -88,7 +88,7 @@ TEST_BEGIN(test_stats_arenas_summary)
little = mallocx(SMALL_MAXCLASS, 0);
assert_ptr_not_null(little, "Unexpected mallocx() failure");
- large = mallocx(arena_maxclass, 0);
+ large = mallocx(large_maxclass, 0);
assert_ptr_not_null(large, "Unexpected mallocx() failure");
huge = mallocx(chunksize, 0);
assert_ptr_not_null(huge, "Unexpected mallocx() failure");
@@ -200,7 +200,7 @@ TEST_BEGIN(test_stats_arenas_large)
assert_d_eq(mallctl("thread.arena", NULL, NULL, &arena, sizeof(arena)),
0, "Unexpected mallctl() failure");
- p = mallocx(arena_maxclass, 0);
+ p = mallocx(large_maxclass, 0);
assert_ptr_not_null(p, "Unexpected mallocx() failure");
assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0,