mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8170761: Buffer overrun in sharedRuntime_x86_64.cpp:477
Fixed missing half assert! Reviewed-by: kvn
This commit is contained in:
parent
0b61a28b26
commit
af7e1eac20
6 changed files with 23 additions and 23 deletions
|
@ -683,7 +683,7 @@ int SharedRuntime::java_calling_convention(const BasicType *sig_bt,
|
|||
}
|
||||
break;
|
||||
case T_LONG:
|
||||
assert(sig_bt[i+1] == T_VOID, "expecting half");
|
||||
assert((i + 1) < total_args_passed && sig_bt[i+1] == T_VOID, "expecting half");
|
||||
if (ireg < z_num_iarg_registers) {
|
||||
// Put long in register.
|
||||
regs[i].set2(z_iarg_reg[ireg]);
|
||||
|
@ -723,7 +723,7 @@ int SharedRuntime::java_calling_convention(const BasicType *sig_bt,
|
|||
}
|
||||
break;
|
||||
case T_DOUBLE:
|
||||
assert(sig_bt[i+1] == T_VOID, "expecting half");
|
||||
assert((i + 1) < total_args_passed && sig_bt[i+1] == T_VOID, "expecting half");
|
||||
if (freg < z_num_farg_registers) {
|
||||
// Put double in register.
|
||||
regs[i].set2(z_farg_reg[freg]);
|
||||
|
@ -822,7 +822,7 @@ int SharedRuntime::c_calling_convention(const BasicType *sig_bt,
|
|||
}
|
||||
break;
|
||||
case T_DOUBLE:
|
||||
assert(sig_bt[i+1] == T_VOID, "expecting half");
|
||||
assert((i + 1) < total_args_passed && sig_bt[i+1] == T_VOID, "expecting half");
|
||||
if (freg < z_num_farg_registers) {
|
||||
regs[i].set2(z_farg_reg[freg]);
|
||||
++freg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue