RFR: 8315771: [JVMCI] Resolution of bootstrap methods with int[] static arguments [v5]
Sacha Coppey
duke at openjdk.org
Wed Sep 13 13:50:42 UTC 2023
On Fri, 8 Sep 2023 16:33:59 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
>> Currently, it returns another constant pool index or a random number. I can add a check in the `CachedBSMArgs.get` method to prevent this.
>
> Yes please. We should opt for exceptions over undefined behavior whenever possible.
After double checking, there is in fact already an `assert` for checking if the index is out of bounds. Should I change it to an exception?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15588#discussion_r1324544867
More information about the hotspot-compiler-dev
mailing list