RFR: 8303563: GetCurrentThreadCpuTime and GetThreadCpuTime need further clarification for virtual threads
Serguei Spitsyn
sspitsyn at openjdk.org
Wed Apr 5 07:52:07 UTC 2023
On Tue, 4 Apr 2023 20:33:46 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> This is a follow-up to [JDK-8302615](https://bugs.openjdk.org/browse/JDK-8302615) where GetCurrentThreadCpuTime and GetThreadCpuTime were changed from being not supported to optional, when called from/with a virtual thread. There are two additional sentences that need adjustment to avoid creating a conflict in the spec.
>
> In the functions `GetCurrentThreadCpuTime` and `GetThreadCpuTime`:
>
> The fragment:
> `"The current thread may not be a virtual thread. Otherwise, the error code"`
>
> is replaced with:
>
> "An implementation is not required to support this function
> when the current thread is a virtual thread, in which case"
>
>
> CSR: [JDK-8305617](https://bugs.openjdk.org/browse/JDK-8305617)
Thank you for review, David and Alan!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13338#issuecomment-1497065943
More information about the serviceability-dev
mailing list