diff options
author | Tad Marshall <tad@10gen.com> | 2012-05-12 07:14:16 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-05-17 16:17:45 -0400 |
commit | 39206090720e914a5810ae02ae6f7c1212b59ca5 (patch) | |
tree | 0f2cbda121d380f72927f86fe1e65a38b253ef85 /src/mongo/util/mmap_win.cpp | |
parent | 13347e455937d9fe65c6da539ac145509002f094 (diff) | |
download | mongo-39206090720e914a5810ae02ae6f7c1212b59ca5.tar.gz |
SERVER-2942 Hook functions in the Windows Import Address Table
In the Windows version of mongod and test, hook the RtlCreateHeap and
NtAllocateVirtualMemory functions in ntdll.dll through the Import
Address Tables of kernel32.dll and/or kernelbase.dll. Use RemapLock
to block memory allocations during the period when remapPrivateView()
has the private view unmapped so that other threads can't grab any of
the address space required for the private view.
Diffstat (limited to 'src/mongo/util/mmap_win.cpp')
-rw-r--r-- | src/mongo/util/mmap_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/mmap_win.cpp b/src/mongo/util/mmap_win.cpp index d9f8b2809a9..a66b017a370 100644 --- a/src/mongo/util/mmap_win.cpp +++ b/src/mongo/util/mmap_win.cpp @@ -263,7 +263,7 @@ namespace mongo { LockMongoFilesExclusive lockMongoFiles; - RemapLock lk; // Interlock with PortMessageServer::acceptedMP() to stop thread creation + RemapLock remapLock; clearWritableBits(oldPrivateAddr); if( !UnmapViewOfFile(oldPrivateAddr) ) { |