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_solaris.cpp | |
parent | 588084f90b7b5706a4ec60db05826b3f30c1fc8e (diff) | |
download | mongo-51e3e36ac48cac80c920e5e418013fdb0a6747f2.tar.gz |
SERVER-53279 remove ProcessInfo::blockInMemory()
Diffstat (limited to 'src/mongo/util/processinfo_solaris.cpp')
-rw-r--r-- | src/mongo/util/processinfo_solaris.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/util/processinfo_solaris.cpp b/src/mongo/util/processinfo_solaris.cpp index f267b934c68..6df2af5b13f 100644 --- a/src/mongo/util/processinfo_solaris.cpp +++ b/src/mongo/util/processinfo_solaris.cpp @@ -227,16 +227,4 @@ bool ProcessInfo::blockCheckSupported() { return true; } -bool ProcessInfo::blockInMemory(const void* start) { - char x = 0; - if (mincore( - static_cast<char*>(const_cast<void*>(alignToStartOfPage(start))), getPageSize(), &x)) { - LOGV2(23358, - "mincore failed: {errnoWithDescription}", - "errnoWithDescription"_attr = errnoWithDescription()); - return 1; - } - return x & 0x1; -} - } // namespace mongo |