src/hotspot/os/linux/os_linux.cpp
changeset 57651 ddae2da329ed
parent 57599 98dfaf0f9442
child 57804 9b7b9f16dfd9
equal deleted inserted replaced
57650:8f067351c370 57651:ddae2da329ed
  1737 
  1737 
  1738 void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
  1738 void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
  1739   void * result = NULL;
  1739   void * result = NULL;
  1740   bool load_attempted = false;
  1740   bool load_attempted = false;
  1741 
  1741 
       
  1742   log_info(os)("attempting shared library load of %s", filename);
       
  1743 
  1742   // Check whether the library to load might change execution rights
  1744   // Check whether the library to load might change execution rights
  1743   // of the stack. If they are changed, the protection of the stack
  1745   // of the stack. If they are changed, the protection of the stack
  1744   // guard pages will be lost. We need a safepoint to fix this.
  1746   // guard pages will be lost. We need a safepoint to fix this.
  1745   //
  1747   //
  1746   // See Linux man page execstack(8) for more info.
  1748   // See Linux man page execstack(8) for more info.
  1988     if (ebuf != NULL && ebuflen > 0) {
  1990     if (ebuf != NULL && ebuflen > 0) {
  1989       ::strncpy(ebuf, error_report, ebuflen-1);
  1991       ::strncpy(ebuf, error_report, ebuflen-1);
  1990       ebuf[ebuflen-1]='\0';
  1992       ebuf[ebuflen-1]='\0';
  1991     }
  1993     }
  1992     Events::log(NULL, "Loading shared library %s failed, %s", filename, error_report);
  1994     Events::log(NULL, "Loading shared library %s failed, %s", filename, error_report);
       
  1995     log_info(os)("shared library load of %s failed, %s", filename, error_report);
  1993   } else {
  1996   } else {
  1994     Events::log(NULL, "Loaded shared library %s", filename);
  1997     Events::log(NULL, "Loaded shared library %s", filename);
       
  1998     log_info(os)("shared library load of %s was successful", filename);
  1995   }
  1999   }
  1996   return result;
  2000   return result;
  1997 }
  2001 }
  1998 
  2002 
  1999 void * os::Linux::dll_load_in_vmthread(const char *filename, char *ebuf,
  2003 void * os::Linux::dll_load_in_vmthread(const char *filename, char *ebuf,