equal
deleted
inserted
replaced
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(); |