Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/nmethod.cpp @ 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 | 7fedc59e2cdc |
children | ca33948fb804 |
comparison
equal
deleted
inserted
replaced
12703:b6f66fb9f106 | 12704:0e998f0daddf |
---|---|
227 static java_nmethod_stats_struct c2_java_nmethod_stats; | 227 static java_nmethod_stats_struct c2_java_nmethod_stats; |
228 #endif | 228 #endif |
229 #ifdef GRAAL | 229 #ifdef GRAAL |
230 static java_nmethod_stats_struct graal_java_nmethod_stats; | 230 static java_nmethod_stats_struct graal_java_nmethod_stats; |
231 #endif | 231 #endif |
232 static java_nmethod_stats_struct unknwon_java_nmethod_stats; | |
232 | 233 |
233 static native_nmethod_stats_struct native_nmethod_stats; | 234 static native_nmethod_stats_struct native_nmethod_stats; |
234 static pc_nmethod_stats_struct pc_nmethod_stats; | 235 static pc_nmethod_stats_struct pc_nmethod_stats; |
235 | 236 |
236 static void note_java_nmethod(nmethod* nm) { | 237 static void note_java_nmethod(nmethod* nm) { |
237 #ifdef COMPILER1 | 238 #ifdef COMPILER1 |
238 if (nm->is_compiled_by_c1()) { | 239 if (nm->is_compiled_by_c1()) { |
239 c1_java_nmethod_stats.note_nmethod(nm); | 240 c1_java_nmethod_stats.note_nmethod(nm); |
240 } | 241 } else |
241 #endif | 242 #endif |
242 #ifdef COMPILER2 | 243 #ifdef COMPILER2 |
243 if (nm->is_compiled_by_c2()) { | 244 if (nm->is_compiled_by_c2()) { |
244 c2_java_nmethod_stats.note_nmethod(nm); | 245 c2_java_nmethod_stats.note_nmethod(nm); |
245 } | 246 } else |
246 #endif | 247 #endif |
247 #ifdef GRAAL | 248 #ifdef GRAAL |
248 if (nm->is_compiled_by_graal()) { | 249 if (nm->is_compiled_by_graal()) { |
249 graal_java_nmethod_stats.note_nmethod(nm); | 250 graal_java_nmethod_stats.note_nmethod(nm); |
250 } | 251 } else |
251 #endif | 252 #endif |
253 { | |
254 unknwon_java_nmethod_stats.note_nmethod(nm); | |
255 } | |
252 } | 256 } |
253 | 257 |
254 | 258 |
255 //--------------------------------------------------------------------------------- | 259 //--------------------------------------------------------------------------------- |
256 | 260 |
3085 c2_java_nmethod_stats.print_nmethod_stats("C2"); | 3089 c2_java_nmethod_stats.print_nmethod_stats("C2"); |
3086 #endif | 3090 #endif |
3087 #ifdef GRAAL | 3091 #ifdef GRAAL |
3088 graal_java_nmethod_stats.print_nmethod_stats("Graal"); | 3092 graal_java_nmethod_stats.print_nmethod_stats("Graal"); |
3089 #endif | 3093 #endif |
3094 unknwon_java_nmethod_stats.print_nmethod_stats("Unknown"); | |
3090 DebugInformationRecorder::print_statistics(); | 3095 DebugInformationRecorder::print_statistics(); |
3091 pc_nmethod_stats.print_pc_stats(); | 3096 pc_nmethod_stats.print_pc_stats(); |
3092 Dependencies::print_statistics(); | 3097 Dependencies::print_statistics(); |
3093 if (xtty != NULL) xtty->tail("statistics"); | 3098 if (xtty != NULL) xtty->tail("statistics"); |
3094 } | 3099 } |