aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.cpp')
-rw-r--r--compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.cpp b/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.cpp
index f58d4b104b39..ca5231a235f5 100644
--- a/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.cpp
+++ b/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.cpp
@@ -12,7 +12,6 @@
#include <assert.h>
#include <stdint.h>
#include <string.h>
-#include <zircon/limits.h>
#include <zircon/process.h>
#include <zircon/syscalls.h>
@@ -97,7 +96,9 @@ void GuardedPoolAllocator::deallocateInGuardedPool(void *Ptr,
Check(Status == ZX_OK, "Vmar unmapping failed");
}
-size_t GuardedPoolAllocator::getPlatformPageSize() { return ZX_PAGE_SIZE; }
+size_t GuardedPoolAllocator::getPlatformPageSize() {
+ return _zx_system_get_page_size();
+}
void GuardedPoolAllocator::installAtFork() {}
} // namespace gwp_asan