projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54691a5
)
[scudo] Use portable sysconf instead of deprecated getpagesize
author
Dominic Chen
<ddchen@apple.com>
Wed, 16 Mar 2022 20:51:46 +0000
(13:51 -0700)
committer
Dominic Chen
<ddchen@apple.com>
Thu, 17 Mar 2022 18:02:26 +0000
(11:02 -0700)
Differential Revision: https://reviews.llvm.org/D121859
compiler-rt/lib/scudo/standalone/tests/map_test.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/scudo/standalone/tests/map_test.cpp
b/compiler-rt/lib/scudo/standalone/tests/map_test.cpp
index
095e1b6
..
ff05258
100644
(file)
--- a/
compiler-rt/lib/scudo/standalone/tests/map_test.cpp
+++ b/
compiler-rt/lib/scudo/standalone/tests/map_test.cpp
@@
-17,7
+17,7
@@
static const char *MappingName = "scudo:test";
TEST(ScudoMapTest, PageSize) {
EXPECT_EQ(scudo::getPageSizeCached(),
- static_cast<scudo::uptr>(
getpagesize(
)));
+ static_cast<scudo::uptr>(
sysconf(_SC_PAGESIZE
)));
}
TEST(ScudoMapDeathTest, MapNoAccessUnmap) {