mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fix rpmalloc on android.
This commit is contained in:
parent
2b584a94c5
commit
f945278959
@ -2102,9 +2102,11 @@ _memory_unmap_os(void* address, size_t size, size_t offset, size_t release) {
|
||||
#if defined(POSIX_MADV_FREE)
|
||||
if (posix_madvise(address, size, POSIX_MADV_FREE))
|
||||
#endif
|
||||
#if defined(POSIX_MADV_DONTNEED)
|
||||
if (posix_madvise(address, size, POSIX_MADV_DONTNEED)) {
|
||||
assert("Failed to madvise virtual memory block as free" == 0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user