Remove build-time configuration 'config_limit_usize_gap'

This commit is contained in:
Guangli Dai 2025-04-15 23:50:43 -07:00 committed by Qi Wang
parent 852da1be15
commit 01e9ecbeb2
15 changed files with 160 additions and 244 deletions

View file

@ -78,8 +78,7 @@ vsalloc(tsdn_t *tsdn, const void *ptr) {
return 0;
}
return config_limit_usize_gap? edata_usize_get(full_alloc_ctx.edata):
sz_index2size(full_alloc_ctx.szind);
return edata_usize_get(full_alloc_ctx.edata);
}
static unsigned

View file

@ -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, limit_usize_gap);
TEST_MALLCTL_OPT(bool, limit_usize_gap, always);
TEST_MALLCTL_OPT(size_t, process_madvise_max_batch, always);
#undef TEST_MALLCTL_OPT