Skip to content

Commit 2528c62

Browse files
committed
8361198: [AIX] fix misleading error output in thread_cpu_time_unchecked
Reviewed-by: mdoerr, azeller
1 parent 1be29bd commit 2528c62

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
@@ -2430,7 +2430,7 @@ static bool thread_cpu_time_unchecked(Thread* thread, jlong* p_sys_time, jlong*
24302430
dummy, &dummy_size) == 0) {
24312431
tid = pinfo.__pi_tid;
24322432
} else {
2433-
tty->print_cr("pthread_getthrds_np failed.");
2433+
tty->print_cr("pthread_getthrds_np failed, errno: %d.", errno);
24342434
error = true;
24352435
}
24362436

@@ -2441,7 +2441,7 @@ static bool thread_cpu_time_unchecked(Thread* thread, jlong* p_sys_time, jlong*
24412441
sys_time = thrdentry.ti_ru.ru_stime.tv_sec * 1000000000LL + thrdentry.ti_ru.ru_stime.tv_usec * 1000LL;
24422442
user_time = thrdentry.ti_ru.ru_utime.tv_sec * 1000000000LL + thrdentry.ti_ru.ru_utime.tv_usec * 1000LL;
24432443
} else {
2444-
tty->print_cr("pthread_getthrds_np failed.");
2444+
tty->print_cr("getthrds64 failed, errno: %d.", errno);
24452445
error = true;
24462446
}
24472447
}

0 commit comments

Comments
 (0)