src/share/vm/runtime/java.cpp

changeset 6207
6aa49042b101
parent 5987
5ccbab1c69f3
child 6429
606acabe7b5c
     1.1 --- a/src/share/vm/runtime/java.cpp	Thu Dec 19 06:09:16 2013 +0100
     1.2 +++ b/src/share/vm/runtime/java.cpp	Thu Dec 19 14:08:02 2013 +0100
     1.3 @@ -52,6 +52,7 @@
     1.4  #include "runtime/memprofiler.hpp"
     1.5  #include "runtime/sharedRuntime.hpp"
     1.6  #include "runtime/statSampler.hpp"
     1.7 +#include "runtime/sweeper.hpp"
     1.8  #include "runtime/task.hpp"
     1.9  #include "runtime/thread.inline.hpp"
    1.10  #include "runtime/timer.hpp"
    1.11 @@ -217,9 +218,7 @@
    1.12  
    1.13  
    1.14  // General statistics printing (profiling ...)
    1.15 -
    1.16  void print_statistics() {
    1.17 -
    1.18  #ifdef ASSERT
    1.19  
    1.20    if (CountRuntimeCalls) {
    1.21 @@ -315,6 +314,10 @@
    1.22      CodeCache::print();
    1.23    }
    1.24  
    1.25 +  if (PrintMethodFlushingStatistics) {
    1.26 +    NMethodSweeper::print();
    1.27 +  }
    1.28 +
    1.29    if (PrintCodeCache2) {
    1.30      MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
    1.31      CodeCache::print_internals();
    1.32 @@ -382,6 +385,10 @@
    1.33      CodeCache::print();
    1.34    }
    1.35  
    1.36 +  if (PrintMethodFlushingStatistics) {
    1.37 +    NMethodSweeper::print();
    1.38 +  }
    1.39 +
    1.40  #ifdef COMPILER2
    1.41    if (PrintPreciseBiasedLockingStatistics) {
    1.42      OptoRuntime::print_named_counters();

mercurial