add segment map to track valid pointers

This commit is contained in:
daanx 2023-04-04 16:00:17 -07:00
parent 461df1e878
commit a2e1d2b893
6 changed files with 166 additions and 20 deletions

View file

@ -574,9 +574,6 @@ bool _mi_arena_contains(const void* p) {
return false;
}
mi_decl_nodiscard mi_decl_export bool mi_is_in_heap_region(const void* p) mi_attr_noexcept {
return _mi_arena_contains(p); // todo: extend to track os allocated memory as well
}
/* -----------------------------------------------------------
Add an arena.