hotspot/src/os/bsd/vm/os_bsd.cpp
changeset 25503 9f471b837330
parent 25477 7dad9f95fd31
child 25946 1572c9f03fb9
equal deleted inserted replaced
25502:92dc8bd62c69 25503:9f471b837330
  1170 void os::die() {
  1170 void os::die() {
  1171   // _exit() on BsdThreads only kills current thread
  1171   // _exit() on BsdThreads only kills current thread
  1172   ::abort();
  1172   ::abort();
  1173 }
  1173 }
  1174 
  1174 
  1175 // unused on bsd for now.
       
  1176 void os::set_error_file(const char *logfile) {}
       
  1177 
       
  1178 
       
  1179 // This method is a copy of JDK's sysGetLastErrorString
  1175 // This method is a copy of JDK's sysGetLastErrorString
  1180 // from src/solaris/hpi/src/system_md.c
  1176 // from src/solaris/hpi/src/system_md.c
  1181 
  1177 
  1182 size_t os::lasterror(char *buf, size_t len) {
  1178 size_t os::lasterror(char *buf, size_t len) {
  1183 
  1179 
  1830           return;
  1826           return;
  1831 
  1827 
  1832         // determine if this is a legacy image or modules image
  1828         // determine if this is a legacy image or modules image
  1833         // modules image doesn't have "jre" subdirectory
  1829         // modules image doesn't have "jre" subdirectory
  1834         len = strlen(buf);
  1830         len = strlen(buf);
       
  1831         assert(len < buflen, "Ran out of buffer space");
  1835         jrelib_p = buf + len;
  1832         jrelib_p = buf + len;
  1836 
  1833 
  1837         // Add the appropriate library subdir
  1834         // Add the appropriate library subdir
  1838         snprintf(jrelib_p, buflen-len, "/jre/lib");
  1835         snprintf(jrelib_p, buflen-len, "/jre/lib");
  1839         if (0 != access(buf, F_OK)) {
  1836         if (0 != access(buf, F_OK)) {
  1863         }
  1860         }
  1864       }
  1861       }
  1865     }
  1862     }
  1866   }
  1863   }
  1867 
  1864 
  1868   strcpy(saved_jvm_path, buf);
  1865   strncpy(saved_jvm_path, buf, MAXPATHLEN);
  1869 }
  1866 }
  1870 
  1867 
  1871 void os::print_jni_name_prefix_on(outputStream* st, int args_size) {
  1868 void os::print_jni_name_prefix_on(outputStream* st, int args_size) {
  1872   // no prefix required, not even "_"
  1869   // no prefix required, not even "_"
  1873 }
  1870 }