8302615: make JVMTI thread cpu time functions optional for virtual threads

Reviewed-by: alanb
This commit is contained in:
Serguei Spitsyn 2023-02-17 21:49:14 +00:00
parent 7c60b9c98f
commit 6b082fb3c6

@ -11058,7 +11058,8 @@ myInit() {
</parameters>
<errors>
<error id="JVMTI_ERROR_UNSUPPORTED_OPERATION">
Current thread is a virtual thread.
The current thread is a virtual thread and the implementation does not support
getting the current thread CPU time when the current thread is a virtual thread.
</error>
</errors>
</function>
@ -11140,7 +11141,8 @@ myInit() {
</parameters>
<errors>
<error id="JVMTI_ERROR_UNSUPPORTED_OPERATION">
<paramlink id="thread"/> is a virtual thread.
<paramlink id="thread"/> is a virtual thread and the implementation does not
support getting the thread CPU time of a virtual thread.
</error>
</errors>
</function>