wip: purgeable arenas; fix asan warnings

This commit is contained in:
daanx 2023-04-03 13:53:43 -07:00
parent fcec09832a
commit 94a867869e
4 changed files with 27 additions and 9 deletions

View file

@ -380,7 +380,8 @@ int _mi_prim_commit(void* start, size_t size, bool commit) {
}
int _mi_prim_reset(void* start, size_t size) {
#if defined(MADV_FREE)
// note: disable the use of MADV_FREE since it leads to confusing stats :-(
#if 0 // defined(MADV_FREE)
static _Atomic(size_t) advice = MI_ATOMIC_VAR_INIT(MADV_FREE);
int oadvice = (int)mi_atomic_load_relaxed(&advice);
int err;