Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2022 12:14:20 +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-qYzn2OSRJB@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

--- Comment #2 from indgy <me@indgy.uk> ---
@genesys also provided minimal code too reproduce, this works in v16 but fa=
ils
under v17

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 -

--=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-qYzn2OSRJB>