Skip to content

Commit fd2eea4

Browse files
committed
8361198: [AIX] fix misleading error output in thread_cpu_time_unchecked
Backport-of: 2528c620a61195ac22d921b168444a7967bf1805
1 parent efeef29 commit fd2eea4

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
@@ -2702,7 +2702,7 @@ static bool thread_cpu_time_unchecked(Thread* thread, jlong* p_sys_time, jlong*
27022702
dummy, &dummy_size) == 0) {
27032703
tid = pinfo.__pi_tid;
27042704
} else {
2705-
tty->print_cr("pthread_getthrds_np failed.");
2705+
tty->print_cr("pthread_getthrds_np failed, errno: %d.", errno);
27062706
error = true;
27072707
}
27082708

@@ -2713,7 +2713,7 @@ static bool thread_cpu_time_unchecked(Thread* thread, jlong* p_sys_time, jlong*
27132713
sys_time = thrdentry.ti_ru.ru_stime.tv_sec * 1000000000LL + thrdentry.ti_ru.ru_stime.tv_usec * 1000LL;
27142714
user_time = thrdentry.ti_ru.ru_utime.tv_sec * 1000000000LL + thrdentry.ti_ru.ru_utime.tv_usec * 1000LL;
27152715
} else {
2716-
tty->print_cr("pthread_getthrds_np failed.");
2716+
tty->print_cr("getthrds64 failed, errno: %d.", errno);
27172717
error = true;
27182718
}
27192719
}

0 commit comments

Comments
 (0)