The issue is that these tests are expecting an intrinsic to show up in LogCompilation output. Graal doesn't use LogCompilation. There are many ways to fix this but the right fix is in WB_IsIntrinsicAvailable:
diff --git a/src/share/vm/prims/whitebox.cpp b/src/share/vm/prims/whitebox.cpp
--- a/src/share/vm/prims/whitebox.cpp
+++ b/src/share/vm/prims/whitebox.cpp
@@ -751,6 +751,11 @@
if (compLevel < CompLevel_none || compLevel > MIN2((CompLevel) TieredStopAtLevel, CompLevel_highest_tier)) {
return false; // Intrinsic is not available on a non-existent compilation level.
}
+#if INCLUDE_JVMCI
+ if (UseJVMCICompiler && compLevel == CompLevel_highest_tier) {
+ return false; // Intrinsic does not exist in JVMCI compiler.
+ }
+#endif
jmethodID method_id, compilation_context_id;
method_id = reflected_method_to_jmid(thread, env, method);
CHECK_JNI_EXCEPTION_(env, JNI_FALSE);
Since this method is making its decision solely based on the compilation level this is just doomed to fail. We need to return false in the case of tier 4 and a JVMCI compiler being used.
diff --git a/src/share/vm/prims/whitebox.cpp b/src/share/vm/prims/whitebox.cpp
--- a/src/share/vm/prims/whitebox.cpp
+++ b/src/share/vm/prims/whitebox.cpp
@@ -751,6 +751,11 @@
if (compLevel < CompLevel_none || compLevel > MIN2((CompLevel) TieredStopAtLevel, CompLevel_highest_tier)) {
return false; // Intrinsic is not available on a non-existent compilation level.
}
+#if INCLUDE_JVMCI
+ if (UseJVMCICompiler && compLevel == CompLevel_highest_tier) {
+ return false; // Intrinsic does not exist in JVMCI compiler.
+ }
+#endif
jmethodID method_id, compilation_context_id;
method_id = reflected_method_to_jmid(thread, env, method);
CHECK_JNI_EXCEPTION_(env, JNI_FALSE);
Since this method is making its decision solely based on the compilation level this is just doomed to fail. We need to return false in the case of tier 4 and a JVMCI compiler being used.
- relates to
-
JDK-8130832 Extend the WhiteBox API to provide information about the availability of compiler intrinsics
-
- Resolved
-