On Tue, 4 Apr 2023 20:33:46 GMT, Serguei Spitsyn <sspit...@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) This pull request has now been integrated. Changeset: 57641190 Author: Serguei Spitsyn <sspit...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/5764119024be067ef7afb063a49a14ef59325af6 Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod 8303563: GetCurrentThreadCpuTime and GetThreadCpuTime need further clarification for virtual threads Reviewed-by: dholmes, alanb ------------- PR: https://git.openjdk.org/jdk/pull/13338