mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 14:11:36 +00:00
8278143: Remove unused "argc" from ConstantPool::copy_bootstrap_arguments_at_impl
Reviewed-by: lfoltan, dholmes
This commit is contained in:
parent
267c024eb5
commit
839b6067c8
@ -1178,16 +1178,15 @@ void ConstantPool::copy_bootstrap_arguments_at_impl(const constantPoolHandle& th
|
||||
objArrayHandle info, int pos,
|
||||
bool must_resolve, Handle if_not_available,
|
||||
TRAPS) {
|
||||
int argc;
|
||||
int limit = pos + end_arg - start_arg;
|
||||
// checks: index in range [0..this_cp->length),
|
||||
// tag at index, start..end in range [0..argc],
|
||||
// tag at index, start..end in range [0..this_cp->bootstrap_argument_count],
|
||||
// info array non-null, pos..limit in [0..info.length]
|
||||
if ((0 >= index || index >= this_cp->length()) ||
|
||||
!(this_cp->tag_at(index).is_invoke_dynamic() ||
|
||||
this_cp->tag_at(index).is_dynamic_constant()) ||
|
||||
(0 > start_arg || start_arg > end_arg) ||
|
||||
(end_arg > (argc = this_cp->bootstrap_argument_count_at(index))) ||
|
||||
(end_arg > this_cp->bootstrap_argument_count_at(index)) ||
|
||||
(0 > pos || pos > limit) ||
|
||||
(info.is_null() || limit > info->length())) {
|
||||
// An index or something else went wrong; throw an error.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user