On Fri, 18 Nov 2022 07:23:20 GMT, Serguei Spitsyn <sspit...@openjdk.org> wrote:
>> The `VirtualThread` static field `notifyJvmtiEvents` is not set correctly in >> cases JVMTI agents are loaded into running VM. It is because an extra call >> to java_lang_VirtualThread::init_static_notify_jvmti_events() is needed. >> This function is called once at the VM initialization, so this extra call is >> not necessary for agent loaded at startup. >> >> Testing: >> New test is added: >> `test/hotspot/jtreg/serviceability/jvmti/vthread/VirtualStackTraceTest` >> This test is failed without fix and passed with it. >> TBD: run all JVMTI and JDI test in mach5. > > Serguei Spitsyn has updated the pull request incrementally with one > additional commit since the last revision: > > ajust condition when init_static_notify_jvmti_events() is called Thank you for review, Leonid. ------------- PR: https://git.openjdk.org/jdk/pull/11204