8075045: AARCH64: Stack banging should use store rather than load

Change stack bangs to use a store rather than a load

Reviewed-by: dholmes
This commit is contained in:
Andrew Haley 2015-03-17 14:03:05 +00:00
parent f0349a463b
commit 2fc2ef9a39
2 changed files with 2 additions and 2 deletions

View File

@ -872,7 +872,7 @@ public:
// stack grows down, caller passes positive offset
assert(offset > 0, "must bang with negative offset");
mov(rscratch2, -offset);
ldr(zr, Address(sp, rscratch2));
str(zr, Address(sp, rscratch2));
}
// Writes to stack successive pages until offset reached to check for

View File

@ -858,7 +858,7 @@ void InterpreterGenerator::bang_stack_shadow_pages(bool native_call) {
const int page_size = os::vm_page_size();
for (int pages = start_page; pages <= StackShadowPages ; pages++) {
__ sub(rscratch2, sp, pages*page_size);
__ ldr(zr, Address(rscratch2));
__ str(zr, Address(rscratch2));
}
}
}