src/hotspot/share/runtime/biasedLocking.cpp
changeset 54807 33fe50b6d707
parent 54710 aa29971a17a1
child 55005 9b70ebd131b4
--- a/src/hotspot/share/runtime/biasedLocking.cpp	Thu May 09 14:28:30 2019 +0200
+++ b/src/hotspot/share/runtime/biasedLocking.cpp	Fri May 10 09:05:29 2019 -0400
@@ -865,7 +865,7 @@
 
 // BiasedLockingCounters
 
-int BiasedLockingCounters::slow_path_entry_count() {
+int BiasedLockingCounters::slow_path_entry_count() const {
   if (_slow_path_entry_count != 0) {
     return _slow_path_entry_count;
   }
@@ -876,7 +876,7 @@
   return _total_entry_count - sum;
 }
 
-void BiasedLockingCounters::print_on(outputStream* st) {
+void BiasedLockingCounters::print_on(outputStream* st) const {
   tty->print_cr("# total entries: %d", _total_entry_count);
   tty->print_cr("# biased lock entries: %d", _biased_lock_entry_count);
   tty->print_cr("# anonymously biased lock entries: %d", _anonymously_biased_lock_entry_count);
@@ -885,3 +885,5 @@
   tty->print_cr("# fast path lock entries: %d", _fast_path_entry_count);
   tty->print_cr("# slow path lock entries: %d", slow_path_entry_count());
 }
+
+void BiasedLockingCounters::print() const { print_on(tty); }