From 346f89825db703c7660cd0678c94f3a54fce9415 Mon Sep 17 00:00:00 2001 From: Tomas Zezula Date: Fri, 4 Oct 2024 18:02:11 +0200 Subject: [PATCH] Set __block_can_call_java to true for non compiler threads. --- src/hotspot/share/jvmci/jvmciCompilerToVM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp index 7b81ed4921216..d8358f747868b 100644 --- a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp +++ b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp @@ -190,7 +190,7 @@ Handle JavaArgumentUnboxer::next_arg(BasicType expectedType) { } else if (thread->is_Compiler_thread()) { \ __block_can_call_java = CompilerThread::cast(thread)->can_call_java(); \ } else { \ - __block_can_call_java = false; \ + __block_can_call_java = true; \ } \ CompilerThreadCanCallJava ccj(thread, __block_can_call_java); \ JVMCIENV_FROM_JNI(JVMCI::compilation_tick(thread), env); \