[Bug 300333] java/openjdk25: getCurrentThreadCpuTime() does not return the actual time in nanoseconds
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Nov 2026 09:46:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300333 --- Comment #6 from Harald Eilertsen <haraldei@FreeBSD.org> --- (In reply to Saro from comment #4) Hm... this is interesting. Using the hard coded CLOCK_THREAD_CPUTIME_ID also seems to be about twice as fast as using the clock returned by pthread_getcpuclockid(). They both report the same granularity, though. Now I wonder why pthread_getcpuclockid() returns a less accurate clock instance for the current thread. I'll see about updating the JVM code to use CLOCK_THREAD_CPUTIME_ID for the current thread, but for other threads we still have to rely on pthread_getcpuclockid(). -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.