Disable config cache to set environment (#350)
author조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Tue, 7 Sep 2021 10:16:20 +0000 (19:16 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 7 Sep 2021 10:16:20 +0000 (19:16 +0900)
To set environment after coreclr_initialize, disable config cache

NativeLauncher/launcher/lib/core_runtime.cc

index b9e75ac..eafb586 100644 (file)
@@ -373,6 +373,9 @@ int CoreRuntime::initialize(const char* appType, LaunchMode launchMode)
        putenv(const_cast<char *>("COMPlus_UseDefaultBaseAddr=1"));
 #endif // USE_DEFAULT_BASE_ADDR
 
+       // Disable config cache to set environment after coreclr_initialize()
+       putenv(const_cast<char *>("COMPlus_DisableConfigCache=1"));
+
        // read string from external file and set them to environment value.
        setEnvFromFile();