hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 25503 9f471b837330
parent 25477 7dad9f95fd31
child 25719 ef6312344da2
equal deleted inserted replaced
25502:92dc8bd62c69 25503:9f471b837330
  1541 // Die immediately, no exit hook, no abort hook, no cleanup.
  1541 // Die immediately, no exit hook, no abort hook, no cleanup.
  1542 void os::die() {
  1542 void os::die() {
  1543   ::abort(); // dump core (for debugging)
  1543   ::abort(); // dump core (for debugging)
  1544 }
  1544 }
  1545 
  1545 
  1546 // unused
       
  1547 void os::set_error_file(const char *logfile) {}
       
  1548 
       
  1549 // DLL functions
  1546 // DLL functions
  1550 
  1547 
  1551 const char* os::dll_file_extension() { return ".so"; }
  1548 const char* os::dll_file_extension() { return ".so"; }
  1552 
  1549 
  1553 // This must be hard coded because it's the system's temporary
  1550 // This must be hard coded because it's the system's temporary
  2183 
  2180 
  2184         realpath(java_home_var, buf);
  2181         realpath(java_home_var, buf);
  2185         // determine if this is a legacy image or modules image
  2182         // determine if this is a legacy image or modules image
  2186         // modules image doesn't have "jre" subdirectory
  2183         // modules image doesn't have "jre" subdirectory
  2187         len = strlen(buf);
  2184         len = strlen(buf);
       
  2185         assert(len < buflen, "Ran out of buffer space");
  2188         jrelib_p = buf + len;
  2186         jrelib_p = buf + len;
  2189         snprintf(jrelib_p, buflen-len, "/jre/lib/%s", cpu_arch);
  2187         snprintf(jrelib_p, buflen-len, "/jre/lib/%s", cpu_arch);
  2190         if (0 != access(buf, F_OK)) {
  2188         if (0 != access(buf, F_OK)) {
  2191           snprintf(jrelib_p, buflen-len, "/lib/%s", cpu_arch);
  2189           snprintf(jrelib_p, buflen-len, "/lib/%s", cpu_arch);
  2192         }
  2190         }
  2201         }
  2199         }
  2202       }
  2200       }
  2203     }
  2201     }
  2204   }
  2202   }
  2205 
  2203 
  2206   strcpy(saved_jvm_path, buf);
  2204   strncpy(saved_jvm_path, buf, MAXPATHLEN);
  2207 }
  2205 }
  2208 
  2206 
  2209 
  2207 
  2210 void os::print_jni_name_prefix_on(outputStream* st, int args_size) {
  2208 void os::print_jni_name_prefix_on(outputStream* st, int args_size) {
  2211   // no prefix required, not even "_"
  2209   // no prefix required, not even "_"