--- a/src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp Tue Aug 21 11:41:54 2018 +0530
+++ b/src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp Tue Aug 21 13:12:15 2018 +0200
@@ -2167,6 +2167,9 @@
Register length = op->length()->as_register();
Register tmp = op->tmp()->as_register();
+ __ resolve(ACCESS_READ, src);
+ __ resolve(ACCESS_WRITE, dst);
+
CodeStub* stub = op->stub();
int flags = op->flags();
BasicType basic_type = default_type != NULL ? default_type->element_type()->basic_type() : T_ILLEGAL;
@@ -2510,6 +2513,7 @@
scratch = op->scratch_opr()->as_register();
}
assert(BasicLock::displaced_header_offset_in_bytes() == 0, "lock_reg must point to the displaced header");
+ __ resolve(ACCESS_READ | ACCESS_WRITE, obj);
// add debug info for NullPointerException only if one is possible
int null_check_offset = __ lock_object(hdr, obj, lock, scratch, *op->stub()->entry());
if (op->info() != NULL) {