mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8163313: assert(comp != __null) failed: compiler not available
Constrain compLevel parameter in WB_IsIntrinsicAvailable() to supported levels Reviewed-by: kvn
This commit is contained in:
parent
3c025b715c
commit
6ca8a98449
1 changed files with 1 additions and 1 deletions
|
@ -679,7 +679,7 @@ WB_ENTRY(jboolean, WB_IsMethodQueuedForCompilation(JNIEnv* env, jobject o, jobje
|
|||
WB_END
|
||||
|
||||
WB_ENTRY(jboolean, WB_IsIntrinsicAvailable(JNIEnv* env, jobject o, jobject method, jobject compilation_context, jint compLevel))
|
||||
if (compLevel < CompLevel_none || compLevel > TieredStopAtLevel) {
|
||||
if (compLevel < CompLevel_none || compLevel > MIN2((CompLevel) TieredStopAtLevel, CompLevel_highest_tier)) {
|
||||
return false; // Intrinsic is not available on a non-existent compilation level.
|
||||
}
|
||||
jmethodID method_id, compilation_context_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue