mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8029630: Thread id should be displayed as a hex number in error report
Thread id is now displayed as a hex number in error report. Reviewed-by: dholmes, hseigel, stuefe
This commit is contained in:
parent
d30de5ab31
commit
f272493a76
1 changed files with 4 additions and 4 deletions
|
@ -231,7 +231,7 @@ char* VMError::error_string(char* buf, int buflen) {
|
||||||
|
|
||||||
if (signame) {
|
if (signame) {
|
||||||
jio_snprintf(buf, buflen,
|
jio_snprintf(buf, buflen,
|
||||||
"%s (0x%x) at pc=" PTR_FORMAT ", pid=%d, tid=" UINTX_FORMAT,
|
"%s (0x%x) at pc=" PTR_FORMAT ", pid=%d, tid=" INTPTR_FORMAT,
|
||||||
signame, _id, _pc,
|
signame, _id, _pc,
|
||||||
os::current_process_id(), os::current_thread_id());
|
os::current_process_id(), os::current_thread_id());
|
||||||
} else if (_filename != NULL && _lineno > 0) {
|
} else if (_filename != NULL && _lineno > 0) {
|
||||||
|
@ -239,7 +239,7 @@ char* VMError::error_string(char* buf, int buflen) {
|
||||||
char separator = os::file_separator()[0];
|
char separator = os::file_separator()[0];
|
||||||
const char *p = strrchr(_filename, separator);
|
const char *p = strrchr(_filename, separator);
|
||||||
int n = jio_snprintf(buf, buflen,
|
int n = jio_snprintf(buf, buflen,
|
||||||
"Internal Error at %s:%d, pid=%d, tid=" UINTX_FORMAT,
|
"Internal Error at %s:%d, pid=%d, tid=" INTPTR_FORMAT,
|
||||||
p ? p + 1 : _filename, _lineno,
|
p ? p + 1 : _filename, _lineno,
|
||||||
os::current_process_id(), os::current_thread_id());
|
os::current_process_id(), os::current_thread_id());
|
||||||
if (n >= 0 && n < buflen && _message) {
|
if (n >= 0 && n < buflen && _message) {
|
||||||
|
@ -253,7 +253,7 @@ char* VMError::error_string(char* buf, int buflen) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
jio_snprintf(buf, buflen,
|
jio_snprintf(buf, buflen,
|
||||||
"Internal Error (0x%x), pid=%d, tid=" UINTX_FORMAT,
|
"Internal Error (0x%x), pid=%d, tid=" INTPTR_FORMAT,
|
||||||
_id, os::current_process_id(), os::current_thread_id());
|
_id, os::current_process_id(), os::current_thread_id());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -480,7 +480,7 @@ void VMError::report(outputStream* st) {
|
||||||
|
|
||||||
// process id, thread id
|
// process id, thread id
|
||||||
st->print(", pid=%d", os::current_process_id());
|
st->print(", pid=%d", os::current_process_id());
|
||||||
st->print(", tid=" UINTX_FORMAT, os::current_thread_id());
|
st->print(", tid=" INTPTR_FORMAT, os::current_thread_id());
|
||||||
st->cr();
|
st->cr();
|
||||||
|
|
||||||
STEP(40, "(printing error message)")
|
STEP(40, "(printing error message)")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue