src/os/linux/vm/os_linux.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6778662 Sdiff src/os/linux/vm

src/os/linux/vm/os_linux.cpp

Print this page




 262   // it looks like libjvm[_g].so is installed there
 263   // <JAVA_HOME>/jre/lib/<arch>/hotspot/libjvm[_g].so.
 264   //
 265   // Otherwise exit.
 266   //
 267   // Important note: if the location of libjvm.so changes this
 268   // code needs to be changed accordingly.
 269 
 270   // The next few definitions allow the code to be verbatim:
 271 #define malloc(n) (char*)NEW_C_HEAP_ARRAY(char, (n))
 272 #define getenv(n) ::getenv(n)
 273 
 274 /*
 275  * See ld(1):
 276  *      The linker uses the following search paths to locate required
 277  *      shared libraries:
 278  *        1: ...
 279  *        ...
 280  *        7: The default directories, normally /lib and /usr/lib.
 281  */




 282 #define DEFAULT_LIBPATH "/lib:/usr/lib"

 283 
 284 #define EXTENSIONS_DIR  "/lib/ext"
 285 #define ENDORSED_DIR    "/lib/endorsed"
 286 #define REG_DIR         "/usr/java/packages"
 287 
 288   {
 289     /* sysclasspath, java_home, dll_dir */
 290     {
 291         char *home_path;
 292         char *dll_path;
 293         char *pslash;
 294         char buf[MAXPATHLEN];
 295         os::jvm_path(buf, sizeof(buf));
 296 
 297         // Found the full path to libjvm.so.
 298         // Now cut the path to <java_home>/jre if we can.
 299         *(strrchr(buf, '/')) = '\0';  /* get rid of /libjvm.so */
 300         pslash = strrchr(buf, '/');
 301         if (pslash != NULL)
 302             *pslash = '\0';           /* get rid of /{client|server|hotspot} */




 262   // it looks like libjvm[_g].so is installed there
 263   // <JAVA_HOME>/jre/lib/<arch>/hotspot/libjvm[_g].so.
 264   //
 265   // Otherwise exit.
 266   //
 267   // Important note: if the location of libjvm.so changes this
 268   // code needs to be changed accordingly.
 269 
 270   // The next few definitions allow the code to be verbatim:
 271 #define malloc(n) (char*)NEW_C_HEAP_ARRAY(char, (n))
 272 #define getenv(n) ::getenv(n)
 273 
 274 /*
 275  * See ld(1):
 276  *      The linker uses the following search paths to locate required
 277  *      shared libraries:
 278  *        1: ...
 279  *        ...
 280  *        7: The default directories, normally /lib and /usr/lib.
 281  */
 282 
 283 #if defined(AMD64) || defined(_LP64) && (defined(PPC) || defined(S390))
 284 #define DEFAULT_LIBPATH "/usr/lib64:/lib64:/lib:/usr/lib"
 285 #else
 286 #define DEFAULT_LIBPATH "/lib:/usr/lib"
 287 #endif
 288 
 289 #define EXTENSIONS_DIR  "/lib/ext"
 290 #define ENDORSED_DIR    "/lib/endorsed"
 291 #define REG_DIR         "/usr/java/packages"
 292 
 293   {
 294     /* sysclasspath, java_home, dll_dir */
 295     {
 296         char *home_path;
 297         char *dll_path;
 298         char *pslash;
 299         char buf[MAXPATHLEN];
 300         os::jvm_path(buf, sizeof(buf));
 301 
 302         // Found the full path to libjvm.so.
 303         // Now cut the path to <java_home>/jre if we can.
 304         *(strrchr(buf, '/')) = '\0';  /* get rid of /libjvm.so */
 305         pslash = strrchr(buf, '/');
 306         if (pslash != NULL)
 307             *pslash = '\0';           /* get rid of /{client|server|hotspot} */


src/os/linux/vm/os_linux.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File