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

Jonas Norlinder jnorlinder at openjdk.org
Fri Dec 19 10:55:14 UTC 2025


On Wed, 17 Dec 2025 07:53:28 GMT, Stefan Johansson <sjohanss at openjdk.org> wrote:

>> Jonas Norlinder has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Use portable type
>
> A couple of more comments.

Me and @kstefanj had a discussion about pros and cons of using getrusage. Its unclear for both of us if we should introduce a major overhaul of the threading infrastructure to support as accurate sampling of system CPU time as possible on Linux with this patch (getrusage) or if we can accept a solution that may be less accurate in a scenario with high-frequency sampling.

We decided continue discussing what path to take after Christmas and new year celebrations. 

Happy holidays everyone! 🎅

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

PR Comment: https://git.openjdk.org/jdk/pull/28824#issuecomment-3674586678


More information about the hotspot-dev mailing list