diff options
author | Benety Goh <benety@mongodb.com> | 2020-12-09 08:05:47 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-09 13:33:44 +0000 |
commit | 51e3e36ac48cac80c920e5e418013fdb0a6747f2 (patch) | |
tree | 3232598c83a3004ad68ddf3891a865ccc196505e /src/mongo/util/processinfo_osx.cpp | |
parent | 588084f90b7b5706a4ec60db05826b3f30c1fc8e (diff) | |
download | mongo-51e3e36ac48cac80c920e5e418013fdb0a6747f2.tar.gz |
SERVER-53279 remove ProcessInfo::blockInMemory()
Diffstat (limited to 'src/mongo/util/processinfo_osx.cpp')
-rw-r--r-- | src/mongo/util/processinfo_osx.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mongo/util/processinfo_osx.cpp b/src/mongo/util/processinfo_osx.cpp index 50d8931fc0f..6ff9fa2509c 100644 --- a/src/mongo/util/processinfo_osx.cpp +++ b/src/mongo/util/processinfo_osx.cpp @@ -220,15 +220,4 @@ bool ProcessInfo::blockCheckSupported() { return true; } -bool ProcessInfo::blockInMemory(const void* start) { - char x = 0; - if (mincore(alignToStartOfPage(start), getPageSize(), &x)) { - LOGV2(23354, - "mincore failed: {errnoWithDescription}", - "errnoWithDescription"_attr = errnoWithDescription()); - return 1; - } - return x & 0x1; -} - } // namespace mongo |