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

@ -411,6 +411,9 @@ static bool mi_os_resetx(void* addr, size_t size, bool reset, mi_stats_t* stats)
if (err != 0) {
_mi_warning_message("cannot reset OS memory (error: %d (0x%x), address: %p, size: 0x%zx bytes)\n", err, err, start, csize);
}
else {
mi_track_mem_undefined(start, csize);
}
return (err == 0);
}