diff options
author | Koundinya Veluri <kouvel@microsoft.com> | 2015-12-02 12:46:37 -0800 |
---|---|---|
committer | Koundinya Veluri <kouvel@microsoft.com> | 2015-12-02 22:54:53 -0800 |
commit | 9b2d53bd5e95cad88e32a0e2b3b2fee5f4ebd21a (patch) | |
tree | 052c443472309733861b951812cc7a3bb9aa5625 /src/dlls | |
parent | f1f3d1e2d33ef87a261faccfa9ad612edd696a64 (diff) | |
download | coreclr-9b2d53bd5e95cad88e32a0e2b3b2fee5f4ebd21a.tar.gz coreclr-9b2d53bd5e95cad88e32a0e2b3b2fee5f4ebd21a.tar.bz2 coreclr-9b2d53bd5e95cad88e32a0e2b3b2fee5f4ebd21a.zip |
Fix perf issue when concurrent GC is enabled by default
- For checks to see if concurrent GC is enabled, replaced those that were directly using EEConfig, to instead use gc_heap::gc_can_use_concurrent, which takes write watch support into account. The max heap size is configured based on whether concurrent GC is enabled, and the previous checks were configuring the size incorrectly when write watch is not supported.
- Enabled concurrent GC by default for hosts that use coreclr_initialize
Fixes #2155
Diffstat (limited to 'src/dlls')
-rw-r--r-- | src/dlls/mscoree/unixinterface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dlls/mscoree/unixinterface.cpp b/src/dlls/mscoree/unixinterface.cpp index 66e35248dd..6a2dbd6c74 100644 --- a/src/dlls/mscoree/unixinterface.cpp +++ b/src/dlls/mscoree/unixinterface.cpp @@ -107,7 +107,8 @@ static void ExtractStartupFlagsAndConvertToUnicode( STARTUP_FLAGS startupFlags = static_cast<STARTUP_FLAGS>( STARTUP_FLAGS::STARTUP_LOADER_OPTIMIZATION_SINGLE_DOMAIN | - STARTUP_FLAGS::STARTUP_SINGLE_APPDOMAIN); + STARTUP_FLAGS::STARTUP_SINGLE_APPDOMAIN | + STARTUP_FLAGS::STARTUP_CONCURRENT_GC); int propertyCountW = 0; for (int propertyIndex = 0; propertyIndex < propertyCount; ++propertyIndex) { |