RFR: 8303242: ThreadMXBean issues with virtual threads [v3]

Alan Bateman alanb at openjdk.org
Wed Mar 1 12:39:55 UTC 2023


On Tue, 28 Feb 2023 20:49:51 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> Alan Bateman has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update isXXXThreadCpuTimeSupported descriptions
>
> src/java.management/share/classes/java/lang/management/ThreadMXBean.java line 529:
> 
>> 527:     /**
>> 528:      * Tests if the Java virtual machine implementation supports CPU time
>> 529:      * measurement for any platform thread.
> 
> This change can also apply in `@return` (line 538)

Yes, this make sense although getting the word right for isCurrentThreadCpuTimeSupported is tricky because its about the caller of getCurrentThreadCpuTime/getCurrentThreadUserTime rather than the caller of isCurrentThreadCpuTimeSupported. Hopefully it is clearer now.

-------------

PR: https://git.openjdk.org/jdk/pull/12762


More information about the serviceability-dev mailing list