From 31bc689977c536d7e6b28020eac1b472b60f7e06 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Wed, 15 Jun 2022 07:49:20 +0000 Subject: [PATCH] 8288324: Loom: Uninitialized JvmtiEnvs in VM_Virtual* ops Reviewed-by: sspitsyn, dholmes --- src/hotspot/share/prims/jvmtiEnvBase.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/prims/jvmtiEnvBase.hpp b/src/hotspot/share/prims/jvmtiEnvBase.hpp index 93c644289f1..71356e9c08c 100644 --- a/src/hotspot/share/prims/jvmtiEnvBase.hpp +++ b/src/hotspot/share/prims/jvmtiEnvBase.hpp @@ -661,7 +661,8 @@ public: VM_VirtualThreadGetStackTrace(JvmtiEnv *env, Handle vthread_h, jint start_depth, jint max_count, jvmtiFrameInfo* frame_buffer, jint* count_ptr) - : _vthread_h(vthread_h), + : _env(env), + _vthread_h(vthread_h), _start_depth(start_depth), _max_count(max_count), _frame_buffer(frame_buffer), @@ -683,7 +684,8 @@ private: public: VM_VirtualThreadGetFrameCount(JvmtiEnv *env, Handle vthread_h, jint* count_ptr) - : _vthread_h(vthread_h), + : _env(env), + _vthread_h(vthread_h), _count_ptr(count_ptr), _result(JVMTI_ERROR_NONE) {}