mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6969574: invokedynamic call sites deoptimize instead of executing
Reviewed-by: kvn
This commit is contained in:
parent
734af9cd47
commit
7e34622217
6 changed files with 28 additions and 23 deletions
|
@ -851,9 +851,15 @@ jint* methodOopDesc::method_type_offsets_chain() {
|
|||
// MethodHandleCompiler.
|
||||
// Must be consistent with MethodHandleCompiler::get_method_oop().
|
||||
bool methodOopDesc::is_method_handle_adapter() const {
|
||||
return (is_method_handle_invoke_name(name()) &&
|
||||
is_synthetic() &&
|
||||
MethodHandleCompiler::klass_is_method_handle_adapter_holder(method_holder()));
|
||||
if (is_synthetic() &&
|
||||
!is_native() && // has code from MethodHandleCompiler
|
||||
is_method_handle_invoke_name(name()) &&
|
||||
MethodHandleCompiler::klass_is_method_handle_adapter_holder(method_holder())) {
|
||||
assert(!is_method_handle_invoke(), "disjoint");
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
methodHandle methodOopDesc::make_invoke_method(KlassHandle holder,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue