mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 14:18:42 +03:00
compile as C++ under msvc
This commit is contained in:
parent
e94143c47c
commit
12e0a04052
7 changed files with 22 additions and 17 deletions
|
@ -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.
|
||||
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);
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
uint8_t* start = (uint8_t*)mi_atomic_read_ptr(®ions[i].start);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue