[scudo] Use portable sysconf instead of deprecated getpagesize
Differential Revision: https://reviews.llvm.org/D121859
This commit is contained in:
parent
54691a58db
commit
58b6521eb5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue