mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8151874: [JVMCI] canInlineMethod should check is_not_compilable for correct CompLevel
Reviewed-by: twisti
This commit is contained in:
parent
dab7ef569b
commit
2b48dbfd93
1 changed files with 4 additions and 1 deletions
|
@ -448,7 +448,10 @@ C2V_END
|
|||
|
||||
C2V_VMENTRY(jboolean, canInlineMethod,(JNIEnv *, jobject, jobject jvmci_method))
|
||||
methodHandle method = CompilerToVM::asMethod(jvmci_method);
|
||||
return !method->is_not_compilable() && !CompilerOracle::should_not_inline(method) && !method->dont_inline();
|
||||
// In hosted mode ignore the not_compilable flags since they are never set by
|
||||
// the JVMCI compiler.
|
||||
bool is_compilable = UseJVMCICompiler ? !method->is_not_compilable(CompLevel_full_optimization) : true;
|
||||
return is_compilable && !CompilerOracle::should_not_inline(method) && !method->dont_inline();
|
||||
C2V_END
|
||||
|
||||
C2V_VMENTRY(jboolean, shouldInlineMethod,(JNIEnv *, jobject, jobject jvmci_method))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue