
updated VM_SetNotifyJvmtiEventsMode to correct jt->jvmti_thread_state() and jt->jvmti_vthread() if necessary (needed to fix JvmtiThreadState double-deallocation issue).


fixed minor issues in libToggleNotifyJvmtiTest.cpp: added volatile specifier and removed unneeded static variable.Pushed a couple of updates which include: $ git pull pull/13133/head Using Skara CLI tools Chris Plummer ( - Reviewer) ⚠️ Review applies to aef87273.Patricio Chilano Mateo ( - Reviewer) ⚠️ Review applies to d38e53fd.Leonid Mesnik ( - Reviewer) ⚠️ Review applies to 1bb250a7.JDK-8297286: runtime/vthread tests crashing after JDK-8296324.Change must not contain extraneous whitespace.Change must be properly reviewed (1 review required, with at least 1 Reviewer).


New test: serviceability/jvmti/vthread/ToggleNotifyJvmtiTest.New regression test: serviceability/jvmti/vthread/ToggleNotifyJvmtiTest.New WhiteBox function WB_SetVirtualThreadsNotifyJvmtiMode(JNIEnv* env, jobject wb, jboolean enable) needed for testing of this update.New function JvmtiEnvBase::disable_virtual_threads_notify_jvmti() which is needed for testing.This function executes a VM operation counting VTMS transition bits in all JavaThread's to correctly set the static counter _VTMS_transition_count needed for VTMS transition protocol. New function JvmtiEnvBase::enable_virtual_threads_notify_jvmti() which does enabling JVMTI VTMS transition notifications in case of agent loaded into running VM.The fix is to enable virtual threads support for late binding JVMTI agents.
