On Thu, 17 Nov 2022 09:12:07 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.

This pull request has now been integrated.

Changeset: 035eaeec
Author:    Serguei Spitsyn <sspit...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/035eaeecabd484d6db629c8b4056fa4b3a73f960
Stats:     180 lines in 3 files changed: 180 ins; 0 del; 0 mod

8296324: JVMTI GetStackTrace truncates vthread stack trace for agents loaded 
into running VM

Reviewed-by: cjplummer, lmesnik

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

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

Reply via email to