mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8201593: Print array length in ArrayIndexOutOfBoundsException
Reviewed-by: dholmes, mdoerr, smonteith, shade, rriggs
This commit is contained in:
parent
b812ae6e51
commit
ac3043c692
34 changed files with 675 additions and 142 deletions
|
@ -872,6 +872,7 @@ void TemplateTable::index_check_without_pop(Register array, Register index) {
|
|||
// convention with generate_ArrayIndexOutOfBounds_handler()
|
||||
__ mov(R4_ArrayIndexOutOfBounds_index, index, hs);
|
||||
}
|
||||
__ mov(R1, array, hs);
|
||||
__ b(Interpreter::_throw_ArrayIndexOutOfBoundsException_entry, hs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue