blob: fdfc9604fefd31986b5331522c9602f30c0bb600 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- base/allocator/partition_allocator/partition_alloc_unittest.cc.orig 2020-07-07 21:58:11 UTC
+++ base/allocator/partition_allocator/partition_alloc_unittest.cc
@@ -307,9 +307,13 @@ void FreeFullPage(PartitionRoot* root, PartitionRoot::
}
}
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
bool CheckPageInCore(void* ptr, bool in_core) {
+#if defined(OS_BSD)
+ char ret = 0;
+#else
unsigned char ret = 0;
+#endif
EXPECT_EQ(0, mincore(ptr, kSystemPageSize, &ret));
return in_core == (ret & 1);
}
|