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:
parent
f0349a463b
commit
2fc2ef9a39
@ -872,7 +872,7 @@ public:
|
|||||||
// stack grows down, caller passes positive offset
|
// stack grows down, caller passes positive offset
|
||||||
assert(offset > 0, "must bang with negative offset");
|
assert(offset > 0, "must bang with negative offset");
|
||||||
mov(rscratch2, -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
|
// Writes to stack successive pages until offset reached to check for
|
||||||
|
@ -858,7 +858,7 @@ void InterpreterGenerator::bang_stack_shadow_pages(bool native_call) {
|
|||||||
const int page_size = os::vm_page_size();
|
const int page_size = os::vm_page_size();
|
||||||
for (int pages = start_page; pages <= StackShadowPages ; pages++) {
|
for (int pages = start_page; pages <= StackShadowPages ; pages++) {
|
||||||
__ sub(rscratch2, sp, pages*page_size);
|
__ sub(rscratch2, sp, pages*page_size);
|
||||||
__ ldr(zr, Address(rscratch2));
|
__ str(zr, Address(rscratch2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user