[PATCH] : Fix wrong message of the ArrayIndexOutOfBoundException

Alexey Bakhtin alexey at azul.com
Wed May 4 18:03:54 UTC 2016


Hi All,

There is a minor copy-past issue in the ArrayIndexOutOfBoundException implementation for aarch32 port.
Application throws expected java.lang.ArrayIndexOutOfBoundsException with incorrect text (“1686608040" instead of index value) in the Xint mode:

There is no such problem in the Xcomp Xbatch mode

The reason of the issue : TemplateInterpreterGenerator::generate_ArrayIndexOutOfBounds_handler reads index element from the r1 register instead of register r2

Suggested fix in the hotspot is:



Unit test to reproduce and verify this issue is:


Run test with java -Xint -jar SimpleTest 100

Regards
Alexey


More information about the aarch32-port-dev mailing list