Rename the arenas.extend mallctl to arenas.create.

This commit is contained in:
Jason Evans
2017-01-03 08:21:29 -08:00
parent 3dc4e83ccb
commit 0f04bb1d6f
10 changed files with 29 additions and 29 deletions

View File

@@ -584,14 +584,14 @@ TEST_BEGIN(test_arenas_lextent_constants)
}
TEST_END
TEST_BEGIN(test_arenas_extend)
TEST_BEGIN(test_arenas_create)
{
unsigned narenas_before, arena, narenas_after;
size_t sz = sizeof(unsigned);
assert_d_eq(mallctl("arenas.narenas", (void *)&narenas_before, &sz,
NULL, 0), 0, "Unexpected mallctl() failure");
assert_d_eq(mallctl("arenas.extend", (void *)&arena, &sz, NULL, 0), 0,
assert_d_eq(mallctl("arenas.create", (void *)&arena, &sz, NULL, 0), 0,
"Unexpected mallctl() failure");
assert_d_eq(mallctl("arenas.narenas", (void *)&narenas_after, &sz, NULL,
0), 0, "Unexpected mallctl() failure");
@@ -647,6 +647,6 @@ main(void)
test_arenas_constants,
test_arenas_bin_constants,
test_arenas_lextent_constants,
test_arenas_extend,
test_arenas_create,
test_stats_arenas));
}