Rename huge_threshold to oversize_threshold.
The keyword huge tend to remind people of huge pages which is not relevent to the feature.
This commit is contained in:
@@ -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)
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user