src/hotspot/os/aix/os_aix.cpp
changeset 50930 6a5f1195e15f
parent 50667 cc58f1fa0438
child 50962 dbe8aa90d4dd
equal deleted inserted replaced
50929:ef57cfcd22ff 50930:6a5f1195e15f
  1206 // Die immediately, no exit hook, no abort hook, no cleanup.
  1206 // Die immediately, no exit hook, no abort hook, no cleanup.
  1207 void os::die() {
  1207 void os::die() {
  1208   ::abort();
  1208   ::abort();
  1209 }
  1209 }
  1210 
  1210 
  1211 // This method is a copy of JDK's sysGetLastErrorString
       
  1212 // from src/solaris/hpi/src/system_md.c
       
  1213 
       
  1214 size_t os::lasterror(char *buf, size_t len) {
       
  1215   if (errno == 0) return 0;
       
  1216 
       
  1217   const char *s = os::strerror(errno);
       
  1218   size_t n = ::strlen(s);
       
  1219   if (n >= len) {
       
  1220     n = len - 1;
       
  1221   }
       
  1222   ::strncpy(buf, s, n);
       
  1223   buf[n] = '\0';
       
  1224   return n;
       
  1225 }
       
  1226 
       
  1227 intx os::current_thread_id() {
  1211 intx os::current_thread_id() {
  1228   return (intx)pthread_self();
  1212   return (intx)pthread_self();
  1229 }
  1213 }
  1230 
  1214 
  1231 int os::current_process_id() {
  1215 int os::current_process_id() {