8145073: Filename and linenumber are not printed for asserts any more
Reviewed-by: dholmes, stuefe
This commit is contained in:
parent
30603c6599
commit
1f55a9122c
@ -736,12 +736,12 @@ bool os::Posix::is_valid_signal(int sig) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns:
|
// Returns:
|
||||||
// "invalid (<num>)" for an invalid signal number
|
// NULL for an invalid signal number
|
||||||
// "SIG<num>" for a valid but unknown signal number
|
// "SIG<num>" for a valid but unknown signal number
|
||||||
// signal name otherwise.
|
// signal name otherwise.
|
||||||
const char* os::exception_name(int sig, char* buf, size_t size) {
|
const char* os::exception_name(int sig, char* buf, size_t size) {
|
||||||
if (!os::Posix::is_valid_signal(sig)) {
|
if (!os::Posix::is_valid_signal(sig)) {
|
||||||
jio_snprintf(buf, size, "invalid (%d)", sig);
|
return NULL;
|
||||||
}
|
}
|
||||||
const char* const name = os::Posix::get_signal_name(sig, buf, size);
|
const char* const name = os::Posix::get_signal_name(sig, buf, size);
|
||||||
if (strcmp(name, "UNKNOWN") == 0) {
|
if (strcmp(name, "UNKNOWN") == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user