Merge pull request #126 from JeanMiK/fix_C++_signature_of_mi_is_in_heap_region
Fix C++ signature of function mi_is_in_heap_region
This commit is contained in:
commit
cbc826beb5
@ -105,7 +105,7 @@ static size_t mi_good_commit_size(size_t size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Return if a pointer points into a region reserved by us.
|
// Return if a pointer points into a region reserved by us.
|
||||||
bool mi_is_in_heap_region(const void* p) {
|
bool mi_is_in_heap_region(const void* p) mi_attr_noexcept {
|
||||||
size_t count = mi_atomic_read(®ions_count);
|
size_t count = mi_atomic_read(®ions_count);
|
||||||
for (size_t i = 0; i < count; i++) {
|
for (size_t i = 0; i < count; i++) {
|
||||||
uint8_t* start = (uint8_t*)mi_atomic_read_ptr(®ions[i].start);
|
uint8_t* start = (uint8_t*)mi_atomic_read_ptr(®ions[i].start);
|
||||||
|
Loading…
Reference in New Issue
Block a user