< prev index next >

src/hotspot/cpu/arm/templateTable_arm.cpp

Print this page
rev 49869 : 8201593: Print array length in ArrayIndexOutOfBoundsException.
Reviewed-by: dholmes

@@ -791,10 +791,11 @@
   __ cmp_32(index, Rtemp);
   if (index != R4_ArrayIndexOutOfBounds_index) {
     // convention with generate_ArrayIndexOutOfBounds_handler()
     __ mov(R4_ArrayIndexOutOfBounds_index, index, hs);
   }
+  __ mov(R1, array, hs);
   __ b(Interpreter::_throw_ArrayIndexOutOfBoundsException_entry, hs);
 }
 
 
 void TemplateTable::iaload() {
< prev index next >