mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
add segment map to track valid pointers
This commit is contained in:
parent
461df1e878
commit
a2e1d2b893
6 changed files with 166 additions and 20 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue