Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2024 14:09:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   [Bug 263881] java/openjdk17-jre Exception: Thread CPU time measurement is not supported
Message-ID:  <bug-263881-8522-rJDuf2mDIh@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-263881-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-263881-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263881

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 =3D ManagementFactory.getThreadMXBean();
System.out.println(tb.getThreadCpuTime(Thread.currentThread().getId())); " |
JAVA_VERSION=3D17 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?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263881-8522-rJDuf2mDIh>