mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-24 21:34:52 +02:00
8143291: Remove redundant coding around os::exception_name
Reviewed-by: dholmes, coleenp
This commit is contained in:
parent
40f65439e2
commit
9e9eac05ae
14 changed files with 167 additions and 480 deletions
|
@ -4585,20 +4585,6 @@ void os::Linux::check_signal_handler(int sig) {
|
|||
extern void report_error(char* file_name, int line_no, char* title,
|
||||
char* format, ...);
|
||||
|
||||
extern bool signal_name(int signo, char* buf, size_t len);
|
||||
|
||||
const char* os::exception_name(int exception_code, char* buf, size_t size) {
|
||||
if (0 < exception_code && exception_code <= SIGRTMAX) {
|
||||
// signal
|
||||
if (!signal_name(exception_code, buf, size)) {
|
||||
jio_snprintf(buf, size, "SIG%d", exception_code);
|
||||
}
|
||||
return buf;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
// this is called _before_ the most of global arguments have been parsed
|
||||
void os::init(void) {
|
||||
char dummy; // used to get a guess on initial stack address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue