RFR: 8372625: [Linux] Remove unnecessary logic for supports_fast_thread_cpu_time

Jonas Norlinder jnorlinder at openjdk.org
Thu Nov 27 06:49:49 UTC 2025


On Thu, 27 Nov 2025 06:44:13 GMT, Jonas Norlinder <jnorlinder at openjdk.org> wrote:

>> src/hotspot/os/linux/os_linux.cpp line 4955:
>> 
>>> 4953:                  &user_time, &sys_time);
>>> 4954:   if (count != 13) return -1;
>>> 4955:   return ((jlong)sys_time + (jlong)user_time) * (1000000000 / os::Posix::clock_tics_per_second());
>> 
>> If this function is meant to be `user` time you kept the wrong line.
>
> It returns the user_time variable. Could you please elaborate why that is wrong?

Oh I see now...

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28516#discussion_r2567349205


More information about the hotspot-runtime-dev mailing list