summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo_solaris.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-12-08 15:31:02 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-09 01:44:54 +0000
commitdb52eb78400a8c59ab6404447026d54a3183802a (patch)
tree1ec4d89e4c0df5d3dd80eec410433dd101f2d564 /src/mongo/util/processinfo_solaris.cpp
parent787c8c087f2c97d482cd215bf20fa8d72f8404da (diff)
downloadmongo-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.cpp15
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