Skip to content

Commit c9b6bb5

Browse files
author
Doug Simon
committed
8308041: [JVMCI] WB_IsGCSupportedByJVMCICompiler must enter correct JVMCI env
Reviewed-by: thartmann
1 parent 0790f70 commit c9b6bb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/prims/whitebox.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ WB_END
368368
WB_ENTRY(jboolean, WB_IsGCSupportedByJVMCICompiler(JNIEnv* env, jobject o, jint name))
369369
#if INCLUDE_JVMCI
370370
if (EnableJVMCI) {
371-
JVMCIEnv jvmciEnv(thread, env, __FILE__, __LINE__);
371+
// Enter the JVMCI env that will be used by the CompileBroker.
372+
JVMCIEnv jvmciEnv(thread, __FILE__, __LINE__);
372373
return jvmciEnv.runtime()->is_gc_supported(&jvmciEnv, (CollectedHeap::Name)name);
373374
}
374375
#endif

0 commit comments

Comments
 (0)