[Bug 263881] java/openjdk17-jre Exception: Thread CPU time measurement is not supported

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 25 Mar 2024 14:09:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263881

Ronald Klop <ronald@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ronald@FreeBSD.org

--- Comment #9 from Ronald Klop <ronald@FreeBSD.org> ---
According to this comment this issue is already resolved since 17.0.9.
https://reviews.freebsd.org/D42130#965940

The testcase from comment #2 also works on my RPI4 (FreeBSD 15/aarch64).

echo "
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadMXBean;
ThreadMXBean tb = ManagementFactory.getThreadMXBean();
System.out.println(tb.getThreadCpuTime(Thread.currentThread().getId())); " |
JAVA_VERSION=17 jshell -
Mar 25, 2024 3:05:43 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
667756203

Can we close the issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.