Review and rebase changes
authorGleb Balykov <g.balykov@samsung.com>
Mon, 8 Jul 2019 10:45:32 +0000 (13:45 +0300)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Tue, 16 Jul 2019 05:05:17 +0000 (14:05 +0900)
NativeLauncher/inc/ni_common.h
NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc
NativeLauncher/tool/ni_common.cc

index 3c43a57..9483ece 100644 (file)
@@ -62,6 +62,7 @@ void createNiPlatform(bool enableR2R, bool doGenUniqueBaseSystem);
  * @brief create native image for specific dll with file path.
  * @param[i] dllPath file path to generate native image
  * @param[i] enableR2R enable ready-to-run mode
+ * @param[i] doGenUniqueBaseSystem flag whether to generate unique default base address
  * @return ni_error_e
  */
 ni_error_e createNiDll(const std::string& dllPath, bool enableR2R, bool doGenUniqueBaseSystem);
@@ -71,6 +72,7 @@ ni_error_e createNiDll(const std::string& dllPath, bool enableR2R, bool doGenUni
  * @param[i] rootPaths directories whicn contains DLLs
  * @param[i] count number of rootPath
  * @param[i] enableR2R enable ready-to-run mode
+ * @param[i] doGenUniqueBaseSystem flag whether to generate unique default base address
  * @param[i] isAppNI if you want to create ni files under nativeImage directory, set it true
  */
 void createNiUnderDirs(const std::string rootPaths[], int count, bool enableR2R, bool doGenUniqueBaseSystem, bool isAppNI = false);
index 0ba9d90..1c1968f 100644 (file)
@@ -83,7 +83,7 @@ extern "C" int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgId, const char *app
                                        std::string originPath = bf::read_symlink(symPath).string();
                                        std::string originNiPath = originPath.substr(0, originPath.rfind(".dll")) + ".ni.dll";
                                        if (!bf::exists(originNiPath)) {
-                                               if(createNiDll(originPath, false) != NI_ERROR_NONE) {
+                                               if(createNiDll(originPath, false, false) != NI_ERROR_NONE) {
                                                        _ERR("Failed to create NI file [%s]\n", originPath.c_str());
                                                        return -1;
                                                }
index fd366f0..79fa9f4 100644 (file)
@@ -50,7 +50,7 @@
 
 #ifdef UNIQUE_DEFAULT_BASE_ADDR_SUPPORT
 #define SYSTEM_BASE_FILE "/usr/share/dotnet.tizen/system.base.addr.txt"
-#define DEFAULT_BASE_ADDR_START 0x1000000
+#define DEFAULT_BASE_ADDR_START 0x3000000
 #endif
 
 #define __XSTR(x) #x