FreeBSD os::*thread_cpu_time()

Will Andrews will at freebsd.org
Fri May 22 21:42:44 UTC 2015


Hi,

Please review (vs OpenJDK 8u45):

http://people.freebsd.org/~will/patches/patch-hotspot_src_os_bsd_vm_os__bsd.cpp
http://people.freebsd.org/~will/patches/patch-hotspot_src_os_bsd_vm_os__bsd.hpp

This patch fixes os_bsd.cpp to lookup pthread_getcpuclockid(), and
call it to respond to requests made for os::*thread_cpu_time().  (The
patch file names are meant to be copied to the current version of the
java/openjdk8 FreeBSD port.)

Anybody know how these (or something to the same effect) can get into
the OpenJDK distribution?

Further, is there any effort towards implementing a "posix" OS layer
so OSs that implement POSIX standards based calls like these don't
have to reimplement identical os:: abstractions?  This code is
functionally identical to the Linux version.  :-/

Thanks!
--Will.


More information about the bsd-port-dev mailing list