From: Woongsuk Cho Date: Tue, 24 Jul 2018 11:07:47 +0000 (+0900) Subject: caching tpa list for optimization X-Git-Tag: accepted/tizen/unified/20180802.134837~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f58c74485e04f04fbf43edae2c8e039a3e70eef2;p=platform%2Fcore%2Fdotnet%2Flauncher.git caching tpa list for optimization Change-Id: I7853ff5979afbfdd88bb55910ddd89087ebec1ba --- diff --git a/NativeLauncher/installer-plugin/ni_common.cc b/NativeLauncher/installer-plugin/ni_common.cc index 8c200ce..f9e81b8 100644 --- a/NativeLauncher/installer-plugin/ni_common.cc +++ b/NativeLauncher/installer-plugin/ni_common.cc @@ -58,6 +58,7 @@ static const char* __CROSSGEN_PATH = __STR(CROSSGEN_PATH); #undef __XSTR static int __interval = 0; +static std::string __tpa; static void waitInterval() { @@ -138,12 +139,11 @@ static void crossgen(const std::string& dllPath, const std::string& appPath, boo return; } } else { - std::string tpa = getTPA(); std::string jitPath = getRuntimeDir() + "/libclrjit.so"; std::vector argv = { __CROSSGEN_PATH, "/nologo", - "/Trusted_Platform_Assemblies", tpa.c_str(), + "/Trusted_Platform_Assemblies", __tpa.c_str(), "/JITPath", jitPath.c_str() }; @@ -272,6 +272,8 @@ int initNICommon(NiCommonOption* option) return -1; } + __tpa = getTPA(); + return 0; } @@ -281,6 +283,8 @@ void finalizeNICommon() finalizePluginManager(); finalizePathManager(); + + __tpa.clear(); }