Skip to content

Commit

Permalink
Automatic merge of jdk:master into master
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Nov 4, 2020
2 parents ee64345 + 160759c commit 02581b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/hotspot/cpu/x86/macroAssembler_x86.cpp
Expand Up @@ -714,8 +714,12 @@ void MacroAssembler::movptr(Register dst, ArrayAddress src) {

// src should NEVER be a real pointer. Use AddressLiteral for true pointers
void MacroAssembler::movptr(Address dst, intptr_t src) {
mov64(rscratch1, src);
movq(dst, rscratch1);
if (is_simm32(src)) {
movptr(dst, checked_cast<int32_t>(src));
} else {
mov64(rscratch1, src);
movq(dst, rscratch1);
}
}

// These are mostly for initializing NULL
Expand Down

0 comments on commit 02581b8

Please sign in to comment.