diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-05-04 19:34:51 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-05-04 19:35:50 -0400 |
commit | 263a5d5b39091a87a553420dba5fb393902a2166 (patch) | |
tree | d54d64de136968f29dbfa23ef37ef229f60fd54e /src/mongo/shell | |
parent | 47b7674dcddf18013934a0f81725c5215ee93ffd (diff) | |
download | mongo-263a5d5b39091a87a553420dba5fb393902a2166.tar.gz |
SERVER-18079: Use TCMalloc for WT on Windows
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/dbshell.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/shell/dbshell.cpp b/src/mongo/shell/dbshell.cpp index ceafa7375b5..12e0b437a32 100644 --- a/src/mongo/shell/dbshell.cpp +++ b/src/mongo/shell/dbshell.cpp @@ -896,6 +896,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; |