RFR: 8373046: Method::get_c2i_unverified_entry() and get_c2i_no_clinit_check_entry() are missing check for abstract method
Dean Long
dlong at openjdk.org
Wed Dec 3 23:57:57 UTC 2025
On Wed, 3 Dec 2025 19:45:12 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:
> This PR fixes a bug introduced by [JDK-8365501](https://bugs.openjdk.org/browse/JDK-8365501). It restores the behavior of `Method::get_c2i_unverified_entry` or `Method::get_c2i_no_clinit_check_entry` for abstract methods as it was before JDK-8365501. It was never the intention of JDK-8365501 to change the behavior.
> I am not sure if there is any possible code flow that can result in calling `Method::get_c2i_unverified_entry` or `Method::get_c2i_no_clinit_check_entry` for abstract methods, but I think it is safe to keep the behavior of these functions as before.
It would be nice to have a test for this. Currently, it looks like calling get_c2i_no_clinit_check_entry with an abstract method is impossible. The same might be true for get_c2i_unverified_entry.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28645#issuecomment-3609322745
More information about the hotspot-dev
mailing list