Skip to content

Commit

Permalink
Updated comment in getObjectValue.
Browse files Browse the repository at this point in the history
Co-authored-by: Douglas Simon <[email protected]>
  • Loading branch information
tzezula and dougxc authored Aug 18, 2024
1 parent 0301024 commit aa3838e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,8 @@ C2V_END

C2V_VMENTRY_0(jlong, getJObjectValue, (JNIEnv* env, jobject, jobject constant_jobject))
requireNotInHotSpot("getJObjectValue", JVMCI_CHECK_0);
// Ensure that we are not using the top-most JNIHandleBlock, which is never released.
// Ensure that current JNI handle scope is not the top-most JNIHandleBlock as handles
// in that scope are only released when the thread exits.
if (!THREAD->has_last_Java_frame() && THREAD->active_handles()->pop_frame_link() == nullptr) {
JVMCI_THROW_MSG_0(IllegalStateException, err_msg("Cannot call getJObjectValue without Java frame anchor or a pushed JNI handle block"));
}
Expand Down

0 comments on commit aa3838e

Please sign in to comment.