8186235: [Graal] compiler/aot/RecompilationTest.java fails in case UseJVMCICompiler is enabled

Make JVMCI respect -XX:-Inline

Reviewed-by: kvn
This commit is contained in:
Igor Veresov 2017-08-22 08:53:35 -07:00
parent b54514e556
commit 7465efdb3b
2 changed files with 3 additions and 3 deletions

View file

@ -765,7 +765,7 @@ C2V_END
C2V_VMENTRY(jboolean, hasNeverInlineDirective,(JNIEnv *, jobject, jobject jvmci_method))
methodHandle method = CompilerToVM::asMethod(jvmci_method);
return CompilerOracle::should_not_inline(method) || method->dont_inline();
return !Inline || CompilerOracle::should_not_inline(method) || method->dont_inline();
C2V_END
C2V_VMENTRY(jboolean, shouldInlineMethod,(JNIEnv *, jobject, jobject jvmci_method))