mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
add extra checks for valid pointers in the pagemap, add max_vabits and debug_commit_full_pagemap options
This commit is contained in:
parent
3a92c35270
commit
c5a2d11193
6 changed files with 33 additions and 19 deletions
|
@ -459,6 +459,7 @@ static inline mi_page_t* _mi_checked_ptr_page(const void* p) {
|
|||
}
|
||||
|
||||
static inline mi_page_t* _mi_ptr_page(const void* p) {
|
||||
mi_assert_internal(p==NULL || mi_is_in_heap_region(p));
|
||||
#if MI_DEBUG || defined(__APPLE__)
|
||||
return _mi_checked_ptr_page(p);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue