RFR(M): 8201593: Print array length in ArrayIndexOutOfBoundsException.

Andrew Haley aph at redhat.com
Wed Apr 25 15:26:22 UTC 2018

On 04/25/2018 04:00 PM, Stuart Monteith wrote:
> I'm not quite sure to solve this yet - we'll need to use the stack in
> some safe way.

It's not a great idea to pass arguments in rscratch1 or rscratch2.  These
registers are for use in macros and should be treated as volatile.  Given
that you're throwing an exception, registers will be clobbered anyway.

Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671

More information about the hotspot-runtime-dev mailing list