8300575: JVMTI support when using alternative virtual thread implementation

Reviewed-by: lmesnik, sspitsyn, alanb
This commit is contained in:
Patricio Chilano Mateo 2023-02-22 15:42:53 +00:00
parent 25bfed3b12
commit 83bea26df4
69 changed files with 558 additions and 121 deletions

View file

@ -157,7 +157,7 @@ void JavaThread::set_threadOopHandles(oop p) {
assert(_thread_oop_storage != nullptr, "not yet initialized");
_threadObj = OopHandle(_thread_oop_storage, p);
_vthread = OopHandle(_thread_oop_storage, p);
_jvmti_vthread = OopHandle(_thread_oop_storage, nullptr);
_jvmti_vthread = OopHandle(_thread_oop_storage, p->is_a(vmClasses::BoundVirtualThread_klass()) ? p : nullptr);
_scopedValueCache = OopHandle(_thread_oop_storage, nullptr);
}