Skip to content

Commit

Permalink
Simplified C2V_BLOCK.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Zezula committed Oct 4, 2024
1 parent 346f898 commit e07d444
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,7 @@ Handle JavaArgumentUnboxer::next_arg(BasicType expectedType) {
JVMCI_VM_ENTRY_MARK; \
ResourceMark rm; \
bool __is_hotspot = env == thread->jni_environment(); \
bool __block_can_call_java; \
if (__is_hotspot) { \
__block_can_call_java = true; \
} else if (thread->is_Compiler_thread()) { \
__block_can_call_java = CompilerThread::cast(thread)->can_call_java(); \
} else { \
__block_can_call_java = true; \
} \
bool __block_can_call_java = __is_hotspot || !thread->is_Compiler_thread() || CompilerThread::cast(thread)->can_call_java(); \
CompilerThreadCanCallJava ccj(thread, __block_can_call_java); \
JVMCIENV_FROM_JNI(JVMCI::compilation_tick(thread), env); \

Expand Down

0 comments on commit e07d444

Please sign in to comment.