[PATCH] D121859: [scudo] Use portable sysconf instead of deprecated getpagesize
Dominic Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 11:02:47 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG58b6521eb5a0: [scudo] Use portable sysconf instead of deprecated getpagesize (authored by ddcc).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121859/new/
https://reviews.llvm.org/D121859
Files:
compiler-rt/lib/scudo/standalone/tests/map_test.cpp
Index: compiler-rt/lib/scudo/standalone/tests/map_test.cpp
===================================================================
--- compiler-rt/lib/scudo/standalone/tests/map_test.cpp
+++ compiler-rt/lib/scudo/standalone/tests/map_test.cpp
@@ -17,7 +17,7 @@
TEST(ScudoMapTest, PageSize) {
EXPECT_EQ(scudo::getPageSizeCached(),
- static_cast<scudo::uptr>(getpagesize()));
+ static_cast<scudo::uptr>(sysconf(_SC_PAGESIZE)));
}
TEST(ScudoMapDeathTest, MapNoAccessUnmap) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121859.416256.patch
Type: text/x-patch
Size: 500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220317/9a9cc020/attachment.bin>
More information about the llvm-commits
mailing list