mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8294087: RISC-V: RVC: Fix a potential alignment issue and add more alignment assertions for the patchable calls/nops
Reviewed-by: shade, fjiang, fyang
This commit is contained in:
parent
3fa6778ab2
commit
a216960d71
9 changed files with 30 additions and 5 deletions
|
@ -2828,6 +2828,11 @@ address MacroAssembler::trampoline_call(Address entry) {
|
|||
}
|
||||
|
||||
address call_pc = pc();
|
||||
#ifdef ASSERT
|
||||
if (entry.rspec().type() != relocInfo::runtime_call_type) {
|
||||
assert_alignment(call_pc);
|
||||
}
|
||||
#endif
|
||||
relocate(entry.rspec());
|
||||
if (!far_branches()) {
|
||||
jal(entry.target());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue