Skip to content

Commit

Permalink
8263612: Unused variables in C1 runtime
Browse files Browse the repository at this point in the history
Reviewed-by: neliasso, thartmann
  • Loading branch information
fparain committed Mar 16, 2021
1 parent 83a9a02 commit 4517d72
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/hotspot/share/c1/c1_Runtime1.cpp
Expand Up @@ -116,7 +116,6 @@ const char *Runtime1::_blob_names[] = {

#ifndef PRODUCT
// statistics
int Runtime1::_generic_arraycopy_cnt = 0;
int Runtime1::_generic_arraycopystub_cnt = 0;
int Runtime1::_arraycopy_slowcase_cnt = 0;
int Runtime1::_arraycopy_checkcast_cnt = 0;
Expand All @@ -134,7 +133,6 @@ int Runtime1::_throw_div0_exception_count = 0;
int Runtime1::_throw_null_pointer_exception_count = 0;
int Runtime1::_throw_class_cast_exception_count = 0;
int Runtime1::_throw_incompatible_class_change_error_count = 0;
int Runtime1::_throw_array_store_exception_count = 0;
int Runtime1::_throw_count = 0;

static int _byte_arraycopy_stub_cnt = 0;
Expand Down Expand Up @@ -1451,7 +1449,6 @@ void Runtime1::print_statistics() {
tty->print_cr(" _resolve_invoke_static_cnt: %d", SharedRuntime::_resolve_static_ctr);
tty->print_cr(" _handle_wrong_method_cnt: %d", SharedRuntime::_wrong_method_ctr);
tty->print_cr(" _ic_miss_cnt: %d", SharedRuntime::_ic_miss_ctr);
tty->print_cr(" _generic_arraycopy_cnt: %d", _generic_arraycopy_cnt);
tty->print_cr(" _generic_arraycopystub_cnt: %d", _generic_arraycopystub_cnt);
tty->print_cr(" _byte_arraycopy_cnt: %d", _byte_arraycopy_stub_cnt);
tty->print_cr(" _short_arraycopy_cnt: %d", _short_arraycopy_stub_cnt);
Expand All @@ -1476,7 +1473,6 @@ void Runtime1::print_statistics() {
tty->print_cr(" _throw_null_pointer_exception_count: %d:", _throw_null_pointer_exception_count);
tty->print_cr(" _throw_class_cast_exception_count: %d:", _throw_class_cast_exception_count);
tty->print_cr(" _throw_incompatible_class_change_error_count: %d:", _throw_incompatible_class_change_error_count);
tty->print_cr(" _throw_array_store_exception_count: %d:", _throw_array_store_exception_count);
tty->print_cr(" _throw_count: %d:", _throw_count);

SharedRuntime::print_ic_miss_histogram();
Expand Down
5 changes: 0 additions & 5 deletions src/hotspot/share/c1/c1_Runtime1.hpp
Expand Up @@ -94,10 +94,6 @@ class Runtime1: public AllStatic {

// statistics
#ifndef PRODUCT
static int _resolve_invoke_cnt;
static int _handle_wrong_method_cnt;
static int _ic_miss_cnt;
static int _generic_arraycopy_cnt;
static int _generic_arraycopystub_cnt;
static int _arraycopy_slowcase_cnt;
static int _arraycopy_checkcast_cnt;
Expand All @@ -115,7 +111,6 @@ class Runtime1: public AllStatic {
static int _throw_null_pointer_exception_count;
static int _throw_class_cast_exception_count;
static int _throw_incompatible_class_change_error_count;
static int _throw_array_store_exception_count;
static int _throw_count;
#endif

Expand Down

1 comment on commit 4517d72

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.