mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 16:43:33 +03:00
Switch from opt.lg_tcache_max to opt.tcache_max
Though for convenience, keep parsing lg_tcache_max.
This commit is contained in:
parent
5ba861715a
commit
c8209150f9
7 changed files with 47 additions and 32 deletions
|
|
@ -179,7 +179,7 @@ TEST_BEGIN(test_mallctl_opt) {
|
|||
TEST_MALLCTL_OPT(bool, xmalloc, xmalloc);
|
||||
TEST_MALLCTL_OPT(bool, tcache, always);
|
||||
TEST_MALLCTL_OPT(size_t, lg_extent_max_active_fit, always);
|
||||
TEST_MALLCTL_OPT(size_t, lg_tcache_max, always);
|
||||
TEST_MALLCTL_OPT(size_t, tcache_max, always);
|
||||
TEST_MALLCTL_OPT(const char *, thp, always);
|
||||
TEST_MALLCTL_OPT(const char *, zero_realloc, always);
|
||||
TEST_MALLCTL_OPT(bool, prof, prof);
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ test_tcache_bytes_for_usize(size_t usize) {
|
|||
TEST_BEGIN(test_stats_tcache_bytes_small) {
|
||||
test_skip_if(!config_stats);
|
||||
test_skip_if(!opt_tcache);
|
||||
test_skip_if((ZU(1) << opt_lg_tcache_max) < SC_SMALL_MAXCLASS);
|
||||
test_skip_if(opt_tcache_max < SC_SMALL_MAXCLASS);
|
||||
|
||||
test_tcache_bytes_for_usize(SC_SMALL_MAXCLASS);
|
||||
}
|
||||
|
|
@ -402,7 +402,7 @@ TEST_END
|
|||
TEST_BEGIN(test_stats_tcache_bytes_large) {
|
||||
test_skip_if(!config_stats);
|
||||
test_skip_if(!opt_tcache);
|
||||
test_skip_if((ZU(1) << opt_lg_tcache_max) < SC_LARGE_MINCLASS);
|
||||
test_skip_if(opt_tcache_max < SC_LARGE_MINCLASS);
|
||||
|
||||
test_tcache_bytes_for_usize(SC_LARGE_MINCLASS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue