[jdk16] RFR: 8259275: JRuby crashes while resolving invokedynamic instruction [v2]

Calvin Cheung ccheung at openjdk.java.net
Tue Jan 12 06:41:01 UTC 2021


On Tue, 12 Jan 2021 02:28:13 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Hi Lois,
>> 
>> Thanks for your review. I've added some comment in `ClassListParser::resolve_indy` for the `Error_klass` case.
>
> I would have expected only LinkageErrors to be ignored as they are the only "expected" errors aren't they?

LinkageError should work since BootstrapMethodError, NoSuchMethodError, etc. are subclasses.
I've changed the check to:
`if (exception->is_a(SystemDictionary::LinkageError_klass())) {`

-------------

PR: https://git.openjdk.java.net/jdk16/pull/104


More information about the hotspot-runtime-dev mailing list