GC env vars (#17837)
authorSung Yoon Whang <suwhang@microsoft.com>
Mon, 30 Apr 2018 21:59:14 +0000 (14:59 -0700)
committerGitHub <noreply@github.com>
Mon, 30 Apr 2018 21:59:14 +0000 (14:59 -0700)
* update server gc export for runtest.sh

* remove CORECLR_SERVER_GC

* Change CORECLR_CONCURRENT_GC to COMPlus_gcConcurrent as well

* Remove it from coreruncommon.cpp

src/coreclr/hosts/corerun/corerun.cpp
src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp
tests/runtest.sh

index 55875c2..47ec363 100644 (file)
 
 // Environment variable for setting whether or not to use Server GC.
 // Off by default.
-static const wchar_t *serverGcVar = W("CORECLR_SERVER_GC");
+static const wchar_t *serverGcVar = W("COMPlus_gcServer");
 
 // Environment variable for setting whether or not to use Concurrent GC.
 // On by default.
-static const wchar_t *concurrentGcVar = W("CORECLR_CONCURRENT_GC");
+static const wchar_t *concurrentGcVar = W("COMPlus_gcConcurrent");
 
 // The name of the CoreCLR native runtime DLL.
 static const wchar_t *coreCLRDll = W("CoreCLR.dll");
index f97f262..eb2333c 100644 (file)
@@ -33,7 +33,7 @@
 // Name of the environment variable controlling server GC.
 // If set to 1, server GC is enabled on startup. If 0, server GC is
 // disabled. Server GC is off by default.
-static const char* serverGcVar = "CORECLR_SERVER_GC";
+static const char* serverGcVar = "COMPlus_gcServer";
 
 // Name of environment variable to control "System.Globalization.Invariant"
 // Set to 1 for Globalization Invariant mode to be true. Default is false.
index 8ded8c3..c63ed4a 100755 (executable)
@@ -1236,7 +1236,7 @@ if ((disableEventLogging == 0)); then
     export COMPlus_EnableEventLog=1
 fi
 
-export CORECLR_SERVER_GC="$serverGC"
+export COMPlus_gcServer="$serverGC"
 
 if [ -z "$testRootDir" ]; then
     echo "--testRootDir is required."