diff options
author | Benety Goh <benety@mongodb.com> | 2020-12-08 15:31:02 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-09 01:44:54 +0000 |
commit | db52eb78400a8c59ab6404447026d54a3183802a (patch) | |
tree | 1ec4d89e4c0df5d3dd80eec410433dd101f2d564 /src/mongo/util/processinfo_solaris.cpp | |
parent | 787c8c087f2c97d482cd215bf20fa8d72f8404da (diff) | |
download | mongo-db52eb78400a8c59ab6404447026d54a3183802a.tar.gz |
SERVER-53279 remove ProcessInfo::pagesInMemory()
Diffstat (limited to 'src/mongo/util/processinfo_solaris.cpp')
-rw-r--r-- | src/mongo/util/processinfo_solaris.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mongo/util/processinfo_solaris.cpp b/src/mongo/util/processinfo_solaris.cpp index 61e509a1089..f267b934c68 100644 --- a/src/mongo/util/processinfo_solaris.cpp +++ b/src/mongo/util/processinfo_solaris.cpp @@ -239,19 +239,4 @@ bool ProcessInfo::blockInMemory(const void* start) { return x & 0x1; } -bool ProcessInfo::pagesInMemory(const void* start, size_t numPages, std::vector<char>* out) { - out->resize(numPages); - if (mincore(static_cast<char*>(const_cast<void*>(alignToStartOfPage(start))), - numPages * getPageSize(), - &out->front())) { - LOGV2(23359, - "mincore failed: {errnoWithDescription}", - "errnoWithDescription"_attr = errnoWithDescription()); - return false; - } - for (size_t i = 0; i < numPages; ++i) { - (*out)[i] &= 0x1; - } - return true; -} } // namespace mongo |