[compiler-rt] d81069e - [scudo/standalone] Use zx_system_get_page_size() on Fuchsia
Roland McGrath via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 10:28:15 PST 2021
Author: Roland McGrath
Date: 2021-02-03T10:28:05-08:00
New Revision: d81069e796f76abc3747af646c9b6176e4a91de7
URL: https://github.com/llvm/llvm-project/commit/d81069e796f76abc3747af646c9b6176e4a91de7
DIFF: https://github.com/llvm/llvm-project/commit/d81069e796f76abc3747af646c9b6176e4a91de7.diff
LOG: [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
Added:
Modified:
compiler-rt/lib/scudo/standalone/fuchsia.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/fuchsia.cpp b/compiler-rt/lib/scudo/standalone/fuchsia.cpp
index d4ea33277941..fa9d85021011 100644
--- a/compiler-rt/lib/scudo/standalone/fuchsia.cpp
+++ b/compiler-rt/lib/scudo/standalone/fuchsia.cpp
@@ -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(); }
More information about the llvm-commits
mailing list