8308041: [JVMCI] WB_IsGCSupportedByJVMCICompiler must enter correct JVMCI env
Reviewed-by: thartmann
This commit is contained in:
parent
0790f704fd
commit
c9b6bb5bd7
@ -368,7 +368,8 @@ WB_END
|
|||||||
WB_ENTRY(jboolean, WB_IsGCSupportedByJVMCICompiler(JNIEnv* env, jobject o, jint name))
|
WB_ENTRY(jboolean, WB_IsGCSupportedByJVMCICompiler(JNIEnv* env, jobject o, jint name))
|
||||||
#if INCLUDE_JVMCI
|
#if INCLUDE_JVMCI
|
||||||
if (EnableJVMCI) {
|
if (EnableJVMCI) {
|
||||||
JVMCIEnv jvmciEnv(thread, env, __FILE__, __LINE__);
|
// Enter the JVMCI env that will be used by the CompileBroker.
|
||||||
|
JVMCIEnv jvmciEnv(thread, __FILE__, __LINE__);
|
||||||
return jvmciEnv.runtime()->is_gc_supported(&jvmciEnv, (CollectedHeap::Name)name);
|
return jvmciEnv.runtime()->is_gc_supported(&jvmciEnv, (CollectedHeap::Name)name);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user