mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8373046: Method::get_c2i_unverified_entry() and get_c2i_no_clinit_check_entry() are missing check for abstract method
Reviewed-by: kvn, vlivanov
This commit is contained in:
parent
019df4d89c
commit
dbf0742bf2
@ -168,11 +168,17 @@ address Method::get_c2i_entry() {
|
||||
}
|
||||
|
||||
address Method::get_c2i_unverified_entry() {
|
||||
if (is_abstract()) {
|
||||
return SharedRuntime::get_handle_wrong_method_abstract_stub();
|
||||
}
|
||||
assert(adapter() != nullptr, "must have");
|
||||
return adapter()->get_c2i_unverified_entry();
|
||||
}
|
||||
|
||||
address Method::get_c2i_no_clinit_check_entry() {
|
||||
if (is_abstract()) {
|
||||
return nullptr;
|
||||
}
|
||||
assert(VM_Version::supports_fast_class_init_checks(), "");
|
||||
assert(adapter() != nullptr, "must have");
|
||||
return adapter()->get_c2i_no_clinit_check_entry();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user