From 9c30d2eab6a5339a6bd4123073fd455751263810 Mon Sep 17 00:00:00 2001 From: Babneet Singh Date: Wed, 1 Mar 2023 16:57:19 -0500 Subject: [PATCH] Remove unnecessary cast in jvmtiGetVirtualThread Related: #16787 Signed-off-by: Babneet Singh --- runtime/jvmti/jvmtiExtensionMechanism.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/jvmti/jvmtiExtensionMechanism.c b/runtime/jvmti/jvmtiExtensionMechanism.c index 961789e3f9c..4bb5e693790 100644 --- a/runtime/jvmti/jvmtiExtensionMechanism.c +++ b/runtime/jvmti/jvmtiExtensionMechanism.c @@ -3812,7 +3812,7 @@ jvmtiGetVirtualThread(jvmtiEnv* jvmti_env, ...) ) { rv_virtual_thread = (jthread)vm->internalVMFunctions->j9jni_createLocalRef( (JNIEnv *)currentThread, - (j9object_t)threadObject); + threadObject); } releaseVMThread(currentThread, targetThread, carrier_thread); }