diff options
author | Ryan Byington <ryanbyi@microsoft.com> | 2016-06-17 18:42:36 +0300 |
---|---|---|
committer | Ryan Byington <ryanbyi@microsoft.com> | 2016-06-17 18:42:36 +0300 |
commit | c7c12ff49b6235137547b3fd108b1cde0e4ac20d (patch) | |
tree | eb2dcb2473905597cbdbf5b947080a360a4302bb /src/Native/Runtime/startup.cpp | |
parent | 25e46006726cff1cfe79e152be208fafaede769d (diff) |
Stress logs not enabled by default in chk builds
The stress log is enabled by default in chk builds. In x86 this allocates 16KB per thread that is never freed which means there are only a limited number threads that can be created in a given process before the process runs out of memory. Some functional tests hit this limit.
DevDiv: 207173 tracks addressing this issue so the stress logs don't consume an unbounded amount of memory.
I am updating the runtime so that the log is not enabled by default.
[tfs-changeset: 1613363]
Diffstat (limited to 'src/Native/Runtime/startup.cpp')
-rw-r--r-- | src/Native/Runtime/startup.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Native/Runtime/startup.cpp b/src/Native/Runtime/startup.cpp index 739c1daed..7e4505eb5 100644 --- a/src/Native/Runtime/startup.cpp +++ b/src/Native/Runtime/startup.cpp @@ -87,12 +87,6 @@ bool InitDLL(HANDLE hPalInstance) UInt32 dwStressLogLevel = g_pRhConfig->GetStressLogLevel(); unsigned facility = (unsigned)LF_ALL; -#ifdef _DEBUG - if (dwTotalStressLogSize == 0) - dwTotalStressLogSize = 1024 * STRESSLOG_CHUNK_SIZE; - if (dwStressLogLevel == 0) - dwStressLogLevel = LL_INFO1000; -#endif unsigned dwPerThreadChunks = (dwTotalStressLogSize / 24) / STRESSLOG_CHUNK_SIZE; if (dwTotalStressLogSize != 0) { |