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

Calvin Cheung ccheung at openjdk.java.net
Tue Jan 12 20:55:57 UTC 2021


On Tue, 12 Jan 2021 06:36:56 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

>> 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())) {`

After offline discussion with Ioi, we've decided to use `log_warning(cds)` to output the exception message since log_warning does not require setting a log level. Also, the `exit(1)` is not needed, we can continue with the CDS dumping after printing the message and clearing the exception.

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

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


More information about the hotspot-runtime-dev mailing list