RFR: 8296323: JVMTI can_support_virtual_threads not available for agents loaded into running VM [v4]

Serguei Spitsyn sspitsyn at openjdk.org
Mon Nov 21 20:23:25 UTC 2022


On Mon, 21 Nov 2022 16:02:19 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

>> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fixed a trailing white space issue
>
> test/hotspot/jtreg/serviceability/jvmti/vthread/VirtualThreadStartTest/libVirtualThreadStartTest.cpp line 54:
> 
>> 52:     started_thread_cnt++;
>> 53:   }
>> 54:   deallocate(jvmti, jni, (void*)tname);
> 
> This will crash if `get_thread_name()` returns the string constant `"<Unnamed thread>"`

Nice catch.
It is strange I've never seen any related crashes.
This could be addressed separately but I've fixed it now.
Please, let me know if you are okay with it.
Will submit more mach5 runs to be safe.

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

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


More information about the hotspot-dev mailing list