use RTLD_NOW option in the loader for launching time performance
authorCho Woong Suk <ws77.cho@samsung.com>
Thu, 28 Jul 2016 11:11:46 +0000 (20:11 +0900)
committerJongHeon Choi <j-h.choi@samsung.com>
Fri, 30 Sep 2016 06:56:50 +0000 (15:56 +0900)
Change-Id: Ie6b322160007e3f798fa1a8ab23c7564f6adf539

loader/wrt_loader.cc

index 6696498..4ccdb49 100644 (file)
@@ -19,7 +19,7 @@
 // loader file must have "User" execute label, because launchpad daemon runs 
 // with "System::Privileged" label.
 int main(int argc, char* argv[]) {
-  void* handle = dlopen("/usr/bin/xwalk_runtime", RTLD_LAZY);
+  void* handle = dlopen("/usr/bin/xwalk_runtime", RTLD_NOW);
   if (!handle) {
     dlog_print(DLOG_DEBUG, "XWALK", "Error loading xwalk_runtime");
     return false;