--- old/src/hotspot/cpu/x86/templateTable_x86.cpp 2018-12-18 18:41:29.430181711 +0300 +++ new/src/hotspot/cpu/x86/templateTable_x86.cpp 2018-12-18 18:41:29.146165139 +0300 @@ -582,8 +582,9 @@ __ cmpl(flags, ltos); __ jcc(Assembler::notEqual, notLong); // ltos - __ movptr(rax, field); + // Loading high word first because movptr clobbers rax NOT_LP64(__ movptr(rdx, field.plus_disp(4))); + __ movptr(rax, field); __ push(ltos); __ jmp(Done);