On Fri, 5 Dec 2025 09:12:55 GMT, Kevin Walls <[email protected]> wrote:

>> Please review following fix that adjust expected results for nsk/monitoring 
>> tests if they are executed with virtual threads or mark them as incompatible.
>> 
>> The ThreadInfo is not returned for virtual threads and some bean functions 
>> return -1.
>> 
>> Tested by running nsk/monitoring with JTREG_TEST_THREAD_FACTORY=Virtual
>
> test/hotspot/jtreg/vmTestbase/nsk/monitoring/ThreadMXBean/GetThreadAllocatedBytes/BaseBehaviorTest.java
>  line 78:
> 
>> 76:         if (Thread.currentThread().isVirtual()) {
>> 77:             if (result != -1)
>> 78:                 throw new TestFailure("Failure! 
>> ggetThreadAllocatedBytes(id) should "
> 
> gget typo

Just an FYI that 
test/jdk/com/sun/management/ThreadMXBean/VirtualThreads.testGetCurrentThreadAllocatedBytes
 also tests the same thing.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28673#discussion_r2591967408

Reply via email to