Skip to content

Commit f13475d

Browse files
committed
Get rid of a bit more autos
1 parent 5f20091 commit f13475d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/hotspot/share/prims/jvmtiClassFileReconstituter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,14 @@ void JvmtiClassFileReconstituter::write_annotations_attribute(const char* attr_n
391391
void JvmtiClassFileReconstituter::write_bootstrapmethod_attribute() {
392392
write_attribute_name_index("BootstrapMethods");
393393

394-
const auto bsm_offs = cpool()->bsm_attribute_offsets();
395-
const auto bsm_data = cpool()->bsm_attribute_entries();
394+
const Array<u4>* bsm_offs = cpool()->bsm_attribute_offsets();
395+
const Array<u2>* bsm_data = cpool()->bsm_attribute_entries();
396396
int num_bootstrap_methods = bsm_offs->length();
397397

398398
// calculate length of attribute
399399
u4 length = sizeof(u2); // num_bootstrap_methods
400400
for (int n = 0; n < num_bootstrap_methods; n++) {
401-
auto bsme = cpool()->bsm_attribute_entry(n);
401+
BSMAttributeEntry* bsme = cpool()->bsm_attribute_entry(n);
402402
u2 num_bootstrap_arguments = bsme->argument_count();
403403
length += sizeof(u2); // bootstrap_method_ref
404404
length += sizeof(u2); // num_bootstrap_arguments
@@ -409,7 +409,7 @@ void JvmtiClassFileReconstituter::write_bootstrapmethod_attribute() {
409409
// write attribute
410410
write_u2(checked_cast<u2>(num_bootstrap_methods));
411411
for (int n = 0; n < num_bootstrap_methods; n++) {
412-
auto bsme = cpool()->bsm_attribute_entry(n);
412+
BSMAttributeEntry* bsme = cpool()->bsm_attribute_entry(n);
413413
u2 num_bootstrap_arguments = bsme->argument_count();
414414
write_u2(bsme->bootstrap_method_index());
415415
write_u2(num_bootstrap_arguments);

src/hotspot/share/prims/methodComparator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ bool MethodComparator::args_same(Bytecodes::Code const c_old, Bytecodes::Code c
133133
(old_cp->uncached_signature_ref_at(cpi_old) != new_cp->uncached_signature_ref_at(cpi_new)))
134134
return false;
135135

136-
auto bsme_old = old_cp->bootstrap_methods_attribute_entry(cpi_old);
137-
auto bsme_new = new_cp->bootstrap_methods_attribute_entry(cpi_new);
136+
BSMAttributeEntry* bsme_old = old_cp->bootstrap_methods_attribute_entry(cpi_old);
137+
BSMAttributeEntry* bsme_new = new_cp->bootstrap_methods_attribute_entry(cpi_new);
138138
int bsm_old = bsme_old->bootstrap_method_index();
139139
int bsm_new = bsme_new->bootstrap_method_index();
140140
if (!pool_constants_same(bsm_old, bsm_new, old_cp, new_cp))

0 commit comments

Comments
 (0)