< prev index next >

src/hotspot/cpu/arm/templateTable_arm.cpp

Print this page
rev 49973 : 8201593: Print array length in ArrayIndexOutOfBoundsException.
Reviewed-by: dholmes, mdoerr, smonteith

@@ -744,10 +744,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 >