mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8361198: [AIX] fix misleading error output in thread_cpu_time_unchecked
Backport-of: 2528c620a6
This commit is contained in:
committed by
Vitaly Provodin
parent
ce9e446c40
commit
bf83c3d6e3
@@ -2706,7 +2706,7 @@ static bool thread_cpu_time_unchecked(Thread* thread, jlong* p_sys_time, jlong*
|
||||
dummy, &dummy_size) == 0) {
|
||||
tid = pinfo.__pi_tid;
|
||||
} else {
|
||||
tty->print_cr("pthread_getthrds_np failed.");
|
||||
tty->print_cr("pthread_getthrds_np failed, errno: %d.", errno);
|
||||
error = true;
|
||||
}
|
||||
|
||||
@@ -2717,7 +2717,7 @@ static bool thread_cpu_time_unchecked(Thread* thread, jlong* p_sys_time, jlong*
|
||||
sys_time = thrdentry.ti_ru.ru_stime.tv_sec * 1000000000LL + thrdentry.ti_ru.ru_stime.tv_usec * 1000LL;
|
||||
user_time = thrdentry.ti_ru.ru_utime.tv_sec * 1000000000LL + thrdentry.ti_ru.ru_utime.tv_usec * 1000LL;
|
||||
} else {
|
||||
tty->print_cr("pthread_getthrds_np failed.");
|
||||
tty->print_cr("getthrds64 failed, errno: %d.", errno);
|
||||
error = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user