RFR: 8256726: Zero: print proper message in ArrayIndexOutOfBoundException [v2]

Aleksey Shipilev shade at openjdk.java.net
Fri Nov 27 09:21:20 UTC 2020


On Fri, 27 Nov 2020 09:16:21 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Seems OK to overestimate a bit. That's what `Runtime1::throw_range_check_exception` does in C1, so I have not challenged it:
>> https://github.com/openjdk/jdk/blob/2f06893a29fba3b40cc1cf03095b75b217d1bb93/src/hotspot/share/c1/c1_Runtime1.cpp#L668-L671
>> 
>> It should count the integers twice, because there are two integers in the string.
>
> Well, fine, I'll count them exactly and `STATIC_ASSERT` it ;)

Done in new revision.

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

PR: https://git.openjdk.java.net/jdk/pull/1341


More information about the hotspot-runtime-dev mailing list