Mercurial > hg > truffle
changeset 12704:0e998f0daddf
Code cache: make sure we collect statistics even if the compiler is not recognized
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 07 Nov 2013 11:17:23 +0100 |
parents | b6f66fb9f106 |
children | 001b8429afc3 85bab2227295 |
files | src/share/vm/code/nmethod.cpp |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp Thu Nov 07 10:45:56 2013 +0100 +++ b/src/share/vm/code/nmethod.cpp Thu Nov 07 11:17:23 2013 +0100 @@ -229,6 +229,7 @@ #ifdef GRAAL static java_nmethod_stats_struct graal_java_nmethod_stats; #endif +static java_nmethod_stats_struct unknwon_java_nmethod_stats; static native_nmethod_stats_struct native_nmethod_stats; static pc_nmethod_stats_struct pc_nmethod_stats; @@ -237,18 +238,21 @@ #ifdef COMPILER1 if (nm->is_compiled_by_c1()) { c1_java_nmethod_stats.note_nmethod(nm); - } + } else #endif #ifdef COMPILER2 if (nm->is_compiled_by_c2()) { c2_java_nmethod_stats.note_nmethod(nm); - } + } else #endif #ifdef GRAAL if (nm->is_compiled_by_graal()) { graal_java_nmethod_stats.note_nmethod(nm); + } else +#endif + { + unknwon_java_nmethod_stats.note_nmethod(nm); } -#endif } @@ -3087,6 +3091,7 @@ #ifdef GRAAL graal_java_nmethod_stats.print_nmethod_stats("Graal"); #endif + unknwon_java_nmethod_stats.print_nmethod_stats("Unknown"); DebugInformationRecorder::print_statistics(); pc_nmethod_stats.print_pc_stats(); Dependencies::print_statistics();