mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Renaming limit_usize_gap to disable_large_size_classes
This commit is contained in:
parent
01e9ecbeb2
commit
8347f1045a
18 changed files with 78 additions and 68 deletions
|
|
@ -43,7 +43,7 @@ for t in $@; do
|
|||
# per test shell script to ignore the @JEMALLOC_CPREFIX@ detail).
|
||||
enable_fill=@enable_fill@ \
|
||||
enable_prof=@enable_prof@ \
|
||||
limit_usize_gap=@limit_usize_gap@ \
|
||||
disable_large_size_classes=@disable_large_size_classes@ \
|
||||
. @srcroot@${t}.sh && \
|
||||
export_malloc_conf && \
|
||||
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
|
||||
|
|
|
|||
|
|
@ -411,11 +411,11 @@ TEST_BEGIN(test_decay_never) {
|
|||
size_t pdirty_prev = get_arena_pdirty(arena_ind);
|
||||
size_t pmuzzy_prev = get_arena_pmuzzy(arena_ind);
|
||||
/*
|
||||
* With limit_usize_gap enabled, some more extents
|
||||
* With sz_large_size_classes_disabled() = true, some more extents
|
||||
* are cached in the dirty pool, making the assumption below
|
||||
* not true.
|
||||
*/
|
||||
if (!sz_limit_usize_gap_enabled()) {
|
||||
if (!sz_large_size_classes_disabled()) {
|
||||
expect_zu_eq(pdirty_prev, 0, "Unexpected dirty pages");
|
||||
}
|
||||
expect_zu_eq(pmuzzy_prev, 0, "Unexpected muzzy pages");
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ TEST_BEGIN(test_mallctl_opt) {
|
|||
TEST_MALLCTL_OPT(bool, prof_sys_thread_name, prof);
|
||||
TEST_MALLCTL_OPT(ssize_t, lg_san_uaf_align, uaf_detection);
|
||||
TEST_MALLCTL_OPT(unsigned, debug_double_free_max_scan, always);
|
||||
TEST_MALLCTL_OPT(bool, limit_usize_gap, always);
|
||||
TEST_MALLCTL_OPT(bool, disable_large_size_classes, always);
|
||||
TEST_MALLCTL_OPT(size_t, process_madvise_max_batch, always);
|
||||
|
||||
#undef TEST_MALLCTL_OPT
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ TEST_BEGIN(test_size_classes) {
|
|||
size_t size_class, max_size_class;
|
||||
szind_t index, gen_index, max_index;
|
||||
|
||||
max_size_class = sz_limit_usize_gap_enabled()? SC_SMALL_MAXCLASS:
|
||||
max_size_class = sz_large_size_classes_disabled()? SC_SMALL_MAXCLASS:
|
||||
get_max_size_class();
|
||||
max_index = sz_size2index(max_size_class);
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ TEST_BEGIN(test_size_classes) {
|
|||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_grow_slow_size_classes) {
|
||||
test_skip_if(!sz_limit_usize_gap_enabled());
|
||||
test_skip_if(!sz_large_size_classes_disabled());
|
||||
|
||||
size_t size = SC_LARGE_MINCLASS;
|
||||
size_t target_usize = SC_LARGE_MINCLASS;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "x${limit_usize_gap}" = "x1" ] ; then
|
||||
export MALLOC_CONF="limit_usize_gap:true"
|
||||
fi
|
||||
export MALLOC_CONF="disable_large_size_classes:true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue