Skip to content

Commit

Permalink
8319559: [JVMCI] ensureLinked must be able to call Java
Browse files Browse the repository at this point in the history
Reviewed-by: never, thartmann
  • Loading branch information
Doug Simon committed Nov 7, 2023
1 parent 1c0e7b7 commit 9ac6ac8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,7 @@ C2V_VMENTRY(void, ensureInitialized, (JNIEnv* env, jobject, ARGUMENT_PAIR(klass)
C2V_END

C2V_VMENTRY(void, ensureLinked, (JNIEnv* env, jobject, ARGUMENT_PAIR(klass)))
CompilerThreadCanCallJava canCallJava(thread, true); // Linking requires Java calls
Klass* klass = UNPACK_PAIR(Klass, klass);
if (klass == nullptr) {
JVMCI_THROW(NullPointerException);
Expand Down

1 comment on commit 9ac6ac8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.