hotspot/src/os/linux/vm/os_linux.cpp
changeset 34621 7676bec20997
parent 34305 e399e6b44631
child 34633 2a6c7c7b30a7
equal deleted inserted replaced
34620:77ef20312eb2 34621:7676bec20997
  4582   }
  4582   }
  4583 }
  4583 }
  4584 
  4584 
  4585 extern void report_error(char* file_name, int line_no, char* title,
  4585 extern void report_error(char* file_name, int line_no, char* title,
  4586                          char* format, ...);
  4586                          char* format, ...);
  4587 
       
  4588 extern bool signal_name(int signo, char* buf, size_t len);
       
  4589 
       
  4590 const char* os::exception_name(int exception_code, char* buf, size_t size) {
       
  4591   if (0 < exception_code && exception_code <= SIGRTMAX) {
       
  4592     // signal
       
  4593     if (!signal_name(exception_code, buf, size)) {
       
  4594       jio_snprintf(buf, size, "SIG%d", exception_code);
       
  4595     }
       
  4596     return buf;
       
  4597   } else {
       
  4598     return NULL;
       
  4599   }
       
  4600 }
       
  4601 
  4587 
  4602 // this is called _before_ the most of global arguments have been parsed
  4588 // this is called _before_ the most of global arguments have been parsed
  4603 void os::init(void) {
  4589 void os::init(void) {
  4604   char dummy;   // used to get a guess on initial stack address
  4590   char dummy;   // used to get a guess on initial stack address
  4605 //  first_hrtime = gethrtime();
  4591 //  first_hrtime = gethrtime();