diff options
author | Qi Wang <interwq@gwu.edu> | 2019-01-24 16:15:04 -0800 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2019-01-25 13:15:45 -0800 |
commit | e3db480f6f3c147a8630c0ec45fde1da5764270b (patch) | |
tree | 010abcbb8a4b52ee372e7797399601e6b8f336ef /test | |
parent | 350809dc5d43ea994de04f7a970b6978a8fec6d2 (diff) |
Rename huge_threshold to oversize_threshold.
The keyword huge tend to remind people of huge pages which is not relevent to
the feature.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/huge.c | 2 | ||||
-rw-r--r-- | test/unit/mallctl.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/huge.c b/test/unit/huge.c index 7e54d076..ab72cf00 100644 --- a/test/unit/huge.c +++ b/test/unit/huge.c @@ -1,7 +1,7 @@ #include "test/jemalloc_test.h" /* Threshold: 2 << 20 = 2097152. */ -const char *malloc_conf = "huge_threshold:2097152"; +const char *malloc_conf = "oversize_threshold:2097152"; #define HUGE_SZ (2 << 20) #define SMALL_SZ (8) diff --git a/test/unit/mallctl.c b/test/unit/mallctl.c index b8b93405..498f9e06 100644 --- a/test/unit/mallctl.c +++ b/test/unit/mallctl.c @@ -164,7 +164,7 @@ TEST_BEGIN(test_mallctl_opt) { TEST_MALLCTL_OPT(const char *, dss, always); TEST_MALLCTL_OPT(unsigned, narenas, always); TEST_MALLCTL_OPT(const char *, percpu_arena, always); - TEST_MALLCTL_OPT(size_t, huge_threshold, always); + TEST_MALLCTL_OPT(size_t, oversize_threshold, always); TEST_MALLCTL_OPT(bool, background_thread, always); TEST_MALLCTL_OPT(ssize_t, dirty_decay_ms, always); TEST_MALLCTL_OPT(ssize_t, muzzy_decay_ms, always); @@ -342,7 +342,7 @@ TEST_BEGIN(test_thread_arena) { sz = sizeof(unsigned); assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), 0, "Unexpected mallctl() failure"); - if (opt_huge_threshold != 0) { + if (opt_oversize_threshold != 0) { narenas--; } assert_u_eq(narenas, opt_narenas, "Number of arenas incorrect"); |