summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoongsuk Cho <ws77.cho@samsung.com>2018-07-24 20:07:47 +0900
committerWoongsuk Cho <ws77.cho@samsung.com>2018-07-24 20:07:47 +0900
commitf58c74485e04f04fbf43edae2c8e039a3e70eef2 (patch)
tree60c73c4ef92c2d6fd02c9c5d53642a7045bfbf9b
parent5b734248ec9f92af3158489ea2b729bed620d44a (diff)
downloadlauncher-f58c74485e04f04fbf43edae2c8e039a3e70eef2.tar.gz
launcher-f58c74485e04f04fbf43edae2c8e039a3e70eef2.tar.bz2
launcher-f58c74485e04f04fbf43edae2c8e039a3e70eef2.zip
caching tpa list for optimization
Change-Id: I7853ff5979afbfdd88bb55910ddd89087ebec1ba
-rw-r--r--NativeLauncher/installer-plugin/ni_common.cc8
1 files changed, 6 insertions, 2 deletions
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<const char*> 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();
}