RFR: 8303563: GetCurrentThreadCpuTime and GetThreadCpuTime need further clarification for virtual threads
David Holmes
dholmes at openjdk.org
Wed Apr 5 02:15:15 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)
Looks good. Thanks.
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/13338#pullrequestreview-1372034930
More information about the serviceability-dev
mailing list