RFR: 8361716 : GCTraceCPUTime may report incorrect times during high load from JNI code [v2]

Jonas Norlinder jnorlinder at openjdk.org
Tue Dec 16 14:01:55 UTC 2025


On Tue, 16 Dec 2025 09:38:29 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> Jonas Norlinder has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix review comments
>
> src/hotspot/share/runtime/os.hpp line 173:
> 
>> 171:   jlong user;
>> 172:   jlong system;
>> 173: };
> 
> Fwiw, `jlong` is a "Java" long, so maybe some C type should be used here. I am aware that the OS interface traditionally uses it, but changes need to start somewhere. However the runtime team may have additional comments about this.

I think such change should start at the source i.e. os::thread_cpu_time, but will await what runtime team says...

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28824#discussion_r2623391522


More information about the hotspot-gc-dev mailing list