mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
7056380: VM crashes with SIGSEGV in compiled code
Code was using andq reg, imm instead of addq addr, imm Reviewed-by: kvn, jrose, twisti
This commit is contained in:
parent
d19a8f6e35
commit
7c1d16f7d3
3 changed files with 25 additions and 35 deletions
|
@ -3804,6 +3804,14 @@ void Assembler::addq(Register dst, Register src) {
|
|||
emit_arith(0x03, 0xC0, dst, src);
|
||||
}
|
||||
|
||||
void Assembler::andq(Address dst, int32_t imm32) {
|
||||
InstructionMark im(this);
|
||||
prefixq(dst);
|
||||
emit_byte(0x81);
|
||||
emit_operand(rsp, dst, 4);
|
||||
emit_long(imm32);
|
||||
}
|
||||
|
||||
void Assembler::andq(Register dst, int32_t imm32) {
|
||||
(void) prefixq_and_encode(dst->encoding());
|
||||
emit_arith(0x81, 0xE0, dst, imm32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue