From c2723578d03d22c18b0607fc9b6ca1deabe2c552 Mon Sep 17 00:00:00 2001 From: Babneet Singh Date: Mon, 22 Jul 2024 11:43:14 -0400 Subject: [PATCH] Fix compiler error, unused variable: currentThread Related: https://github.com/eclipse-openj9/openj9/pull/19871#discussion_r1686758594 Signed-off-by: Babneet Singh --- runtime/jvmti/jvmtiObject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/jvmti/jvmtiObject.c b/runtime/jvmti/jvmtiObject.c index db8b39cc360..e1410d7e735 100644 --- a/runtime/jvmti/jvmtiObject.c +++ b/runtime/jvmti/jvmtiObject.c @@ -232,7 +232,7 @@ findMonitorThreads(J9VMThread *vmThread, J9JVMTIMonitorStats *pStats) /* Stopped on the same monitor object? */ if (lockObject == pStats->lockObject) { J9JavaVM *vm = pStats->vm; - JNIEnv *jniEnv = (JNIEnv *)pStats->currentThread; + JNIEnv *jniEnv = (JNIEnv *)currentThread; threadState &= ~(J9VMTHREAD_STATE_SUSPENDED | J9VMTHREAD_STATE_INTERRUPTED); switch (threadState) {