Skip to content

Commit 6f74302

Browse files
committed
8361198: [AIX] fix misleading error output in thread_cpu_time_unchecked
Backport-of: 2528c620a61195ac22d921b168444a7967bf1805
1 parent 12d7b2e commit 6f74302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/os/aix/os_aix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,7 +2504,7 @@ static bool thread_cpu_time_unchecked(Thread* thread, jlong* p_sys_time, jlong*
25042504
dummy, &dummy_size) == 0) {
25052505
tid = pinfo.__pi_tid;
25062506
} else {
2507-
tty->print_cr("pthread_getthrds_np failed.");
2507+
tty->print_cr("pthread_getthrds_np failed, errno: %d.", errno);
25082508
error = true;
25092509
}
25102510

@@ -2515,7 +2515,7 @@ static bool thread_cpu_time_unchecked(Thread* thread, jlong* p_sys_time, jlong*
25152515
sys_time = thrdentry.ti_ru.ru_stime.tv_sec * 1000000000LL + thrdentry.ti_ru.ru_stime.tv_usec * 1000LL;
25162516
user_time = thrdentry.ti_ru.ru_utime.tv_sec * 1000000000LL + thrdentry.ti_ru.ru_utime.tv_usec * 1000LL;
25172517
} else {
2518-
tty->print_cr("pthread_getthrds_np failed.");
2518+
tty->print_cr("getthrds64 failed, errno: %d.", errno);
25192519
error = true;
25202520
}
25212521
}

0 commit comments

Comments
 (0)