summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-05-04 19:34:51 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-03 13:59:11 -0400
commit7662238b18a136fbad09e45163adff20d32fd1be (patch)
tree5e5552038ecf19ed357a7f699b2e0e7511e743ca
parent99767cdffb16203c5f3190560614b1a166c16bb3 (diff)
downloadmongo-7662238b18a136fbad09e45163adff20d32fd1be.tar.gz
SERVER-18079: Use TCMalloc for WT on Windows
(cherry picked from commit 263a5d5b39091a87a553420dba5fb393902a2166)
-rw-r--r--src/mongo/shell/dbshell.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/shell/dbshell.cpp b/src/mongo/shell/dbshell.cpp
index 3e6195ff78a..e05a9cdcc3c 100644
--- a/src/mongo/shell/dbshell.cpp
+++ b/src/mongo/shell/dbshell.cpp
@@ -903,6 +903,15 @@ int _main( int argc, char* argv[], char **envp ) {
}
#ifdef _WIN32
+// gperftools/windows/patch_functions.cc normally defines this function,
+// but we do not link this file since it would dynamically patch our functions.
+// We override the behavior of this function to no-patch functions, but instead
+// simply to do nothing
+// TCMalloc calls this via a static initializer
+void PatchWindowsFunctions() {
+ // Intentionally left empty
+}
+
int wmain(int argc, wchar_t* argvW[], wchar_t* envpW[]) {
static mongo::StaticObserver staticObserver;
int returnCode;