--- a/src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp Mon Feb 19 04:50:50 2018 +0100
+++ b/src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp Mon Feb 19 15:07:21 2018 +0100
@@ -821,7 +821,7 @@
__ andr(arr_size, arr_size, ~MinObjAlignmentInBytesMask);
__ eden_allocate(obj, arr_size, 0, t1, slow_path); // preserves arr_size
- __ incr_allocated_bytes(thread, arr_size, 0, rscratch1);
+ __ incr_allocated_bytes(rthread, arr_size, 0, rscratch1);
__ initialize_header(obj, klass, length, t1, t2);
__ ldrb(t1, Address(klass, in_bytes(Klass::layout_helper_offset()) + (Klass::_lh_header_size_shift / BitsPerByte)));