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 --- 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 #include #include -#include #include #include @@ -97,7 +96,9 @@ 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