Skip to content

Commit cf86330

Browse files
author
David Simms
committed
8367592: Call to write_flat_field uses a Windows calling convention arg
1 parent b916f97 commit cf86330

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hotspot/cpu/x86/templateTable_x86.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,8 +2981,8 @@ void TemplateTable::putfield_or_static_helper(int byte_no, bool is_static, Rewri
29812981
do_oop_store(_masm, field, rax);
29822982
__ jmp(rewrite_inline);
29832983
__ bind(is_flat);
2984-
pop_and_check_object(r8);
2985-
__ write_flat_field(rcx, r9, rscratch2, r8, rbx, rax);
2984+
pop_and_check_object(rscratch2);
2985+
__ write_flat_field(rcx, r8, rscratch1, rscratch2, rbx, rax);
29862986
__ bind(rewrite_inline);
29872987
if (rc == may_rewrite) {
29882988
patch_bytecode(Bytecodes::_fast_vputfield, bc, rbx, true, byte_no);
@@ -3218,8 +3218,8 @@ void TemplateTable::fast_storefield_helper(Address field, Register rax, Register
32183218
__ jmp(done);
32193219
__ bind(is_flat);
32203220
__ load_field_entry(r8, r9);
3221-
__ movptr(r9, rcx); // re-shuffle registers because of VM call calling convention
3222-
__ write_flat_field(r8, rscratch1, rscratch2, r9, rbx, rax);
3221+
__ movptr(rscratch2, rcx); // re-shuffle registers because of VM call calling convention
3222+
__ write_flat_field(r8, rscratch1, r9, rscratch2, rbx, rax);
32233223
__ bind(done);
32243224
}
32253225
break;

0 commit comments

Comments
 (0)