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:
Ashutosh Mehra 2025-12-04 05:03:07 +00:00
parent 019df4d89c
commit dbf0742bf2

View File

@ -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();