[scudo/standalone] Use zx_system_get_page_size() on Fuchsia

Fuchsia is migrating to a variable page size.

Reviewed By: hctim

Differential Revision: https://reviews.llvm.org/D95921
This commit is contained in:
Roland McGrath 2021-02-02 20:55:52 -08:00
parent 477e3fe4f8
commit d81069e796
1 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@
#include "string_utils.h"
#include <lib/sync/mutex.h> // for sync_mutex_t
#include <limits.h> // for PAGE_SIZE
#include <stdlib.h> // for getenv()
#include <zircon/compiler.h>
#include <zircon/sanitizer.h>
@ -23,7 +22,7 @@
namespace scudo {
uptr getPageSize() { return PAGE_SIZE; }
uptr getPageSize() { return _zx_system_get_page_size(); }
void NORETURN die() { __builtin_trap(); }