mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6893268: additional dynamic language related optimizations in C2
C2 needs some additional optimizations to be able to handle MethodHandle invokes and invokedynamic instructions at the best performance. Reviewed-by: kvn, never
This commit is contained in:
parent
375527d84e
commit
47f2433a58
52 changed files with 1781 additions and 342 deletions
|
@ -180,6 +180,10 @@ const char* InlineTree::shouldNotInline(ciMethod *callee_method, ciMethod* calle
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// Always inline MethodHandle methods.
|
||||
if (callee_method->is_method_handle_invoke())
|
||||
return NULL;
|
||||
|
||||
// First check all inlining restrictions which are required for correctness
|
||||
if (callee_method->is_abstract()) return "abstract method";
|
||||
// note: we allow ik->is_abstract()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue