mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8275865: Print deoptimization statistics in product builds
Reviewed-by: thartmann, kvn
This commit is contained in:
parent
bec977c778
commit
a343fa8766
2 changed files with 84 additions and 2 deletions
|
@ -230,7 +230,6 @@ void print_statistics() {
|
|||
if ((PrintC1Statistics || LogVMOutput || LogCompilation) && UseCompiler) {
|
||||
FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintC1Statistics);
|
||||
Runtime1::print_statistics();
|
||||
Deoptimization::print_statistics();
|
||||
SharedRuntime::print_statistics();
|
||||
}
|
||||
#endif /* COMPILER1 */
|
||||
|
@ -239,8 +238,8 @@ void print_statistics() {
|
|||
if ((PrintOptoStatistics || LogVMOutput || LogCompilation) && UseCompiler) {
|
||||
FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintOptoStatistics);
|
||||
Compile::print_statistics();
|
||||
#ifndef COMPILER1
|
||||
Deoptimization::print_statistics();
|
||||
#ifndef COMPILER1
|
||||
SharedRuntime::print_statistics();
|
||||
#endif //COMPILER1
|
||||
os::print_statistics();
|
||||
|
@ -352,6 +351,14 @@ void print_statistics() {
|
|||
CompileBroker::print_times();
|
||||
}
|
||||
|
||||
#ifdef COMPILER2_OR_JVMCI
|
||||
if ((LogVMOutput || LogCompilation) && UseCompiler) {
|
||||
// Only print the statistics to the log file
|
||||
FlagSetting fs(DisplayVMOutput, false);
|
||||
Deoptimization::print_statistics();
|
||||
}
|
||||
#endif /* COMPILER2 || INCLUDE_JVMCI */
|
||||
|
||||
if (PrintCodeCache) {
|
||||
MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
|
||||
CodeCache::print();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue