Skip to content

Commit 4517d72

Browse files
committedMar 16, 2021
8263612: Unused variables in C1 runtime
Reviewed-by: neliasso, thartmann
1 parent 83a9a02 commit 4517d72

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed
 

‎src/hotspot/share/c1/c1_Runtime1.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ const char *Runtime1::_blob_names[] = {
116116

117117
#ifndef PRODUCT
118118
// statistics
119-
int Runtime1::_generic_arraycopy_cnt = 0;
120119
int Runtime1::_generic_arraycopystub_cnt = 0;
121120
int Runtime1::_arraycopy_slowcase_cnt = 0;
122121
int Runtime1::_arraycopy_checkcast_cnt = 0;
@@ -134,7 +133,6 @@ int Runtime1::_throw_div0_exception_count = 0;
134133
int Runtime1::_throw_null_pointer_exception_count = 0;
135134
int Runtime1::_throw_class_cast_exception_count = 0;
136135
int Runtime1::_throw_incompatible_class_change_error_count = 0;
137-
int Runtime1::_throw_array_store_exception_count = 0;
138136
int Runtime1::_throw_count = 0;
139137

140138
static int _byte_arraycopy_stub_cnt = 0;
@@ -1451,7 +1449,6 @@ void Runtime1::print_statistics() {
14511449
tty->print_cr(" _resolve_invoke_static_cnt: %d", SharedRuntime::_resolve_static_ctr);
14521450
tty->print_cr(" _handle_wrong_method_cnt: %d", SharedRuntime::_wrong_method_ctr);
14531451
tty->print_cr(" _ic_miss_cnt: %d", SharedRuntime::_ic_miss_ctr);
1454-
tty->print_cr(" _generic_arraycopy_cnt: %d", _generic_arraycopy_cnt);
14551452
tty->print_cr(" _generic_arraycopystub_cnt: %d", _generic_arraycopystub_cnt);
14561453
tty->print_cr(" _byte_arraycopy_cnt: %d", _byte_arraycopy_stub_cnt);
14571454
tty->print_cr(" _short_arraycopy_cnt: %d", _short_arraycopy_stub_cnt);
@@ -1476,7 +1473,6 @@ void Runtime1::print_statistics() {
14761473
tty->print_cr(" _throw_null_pointer_exception_count: %d:", _throw_null_pointer_exception_count);
14771474
tty->print_cr(" _throw_class_cast_exception_count: %d:", _throw_class_cast_exception_count);
14781475
tty->print_cr(" _throw_incompatible_class_change_error_count: %d:", _throw_incompatible_class_change_error_count);
1479-
tty->print_cr(" _throw_array_store_exception_count: %d:", _throw_array_store_exception_count);
14801476
tty->print_cr(" _throw_count: %d:", _throw_count);
14811477

14821478
SharedRuntime::print_ic_miss_histogram();

‎src/hotspot/share/c1/c1_Runtime1.hpp

-5
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ class Runtime1: public AllStatic {
9494

9595
// statistics
9696
#ifndef PRODUCT
97-
static int _resolve_invoke_cnt;
98-
static int _handle_wrong_method_cnt;
99-
static int _ic_miss_cnt;
100-
static int _generic_arraycopy_cnt;
10197
static int _generic_arraycopystub_cnt;
10298
static int _arraycopy_slowcase_cnt;
10399
static int _arraycopy_checkcast_cnt;
@@ -115,7 +111,6 @@ class Runtime1: public AllStatic {
115111
static int _throw_null_pointer_exception_count;
116112
static int _throw_class_cast_exception_count;
117113
static int _throw_incompatible_class_change_error_count;
118-
static int _throw_array_store_exception_count;
119114
static int _throw_count;
120115
#endif
121116

0 commit comments

Comments
 (0)