mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8136421: JEP 243: Java-Level JVM Compiler Interface
Reviewed-by: ihse, alanb, roland, coleenp, iveresov, kvn, kbarrett
This commit is contained in:
parent
f5b4bb46f5
commit
16526e000e
505 changed files with 50394 additions and 915 deletions
|
@ -31,6 +31,10 @@
|
|||
#include "compiler/compilerOracle.hpp"
|
||||
#include "gc/shared/genCollectedHeap.hpp"
|
||||
#include "interpreter/bytecodeHistogram.hpp"
|
||||
#if INCLUDE_JVMCI
|
||||
#include "jvmci/jvmciCompiler.hpp"
|
||||
#include "jvmci/jvmciRuntime.hpp"
|
||||
#endif
|
||||
#include "memory/oopFactory.hpp"
|
||||
#include "memory/universe.hpp"
|
||||
#include "oops/constantPool.hpp"
|
||||
|
@ -236,7 +240,6 @@ void print_statistics() {
|
|||
Runtime1::print_statistics();
|
||||
Deoptimization::print_statistics();
|
||||
SharedRuntime::print_statistics();
|
||||
nmethod::print_statistics();
|
||||
}
|
||||
#endif /* COMPILER1 */
|
||||
|
||||
|
@ -246,7 +249,6 @@ void print_statistics() {
|
|||
Compile::print_statistics();
|
||||
#ifndef COMPILER1
|
||||
Deoptimization::print_statistics();
|
||||
nmethod::print_statistics();
|
||||
SharedRuntime::print_statistics();
|
||||
#endif //COMPILER1
|
||||
os::print_statistics();
|
||||
|
@ -264,7 +266,21 @@ void print_statistics() {
|
|||
IndexSet::print_statistics();
|
||||
}
|
||||
#endif // ASSERT
|
||||
#endif // COMPILER2
|
||||
#else
|
||||
#ifdef INCLUDE_JVMCI
|
||||
#ifndef COMPILER1
|
||||
if ((TraceDeoptimization || LogVMOutput || LogCompilation) && UseCompiler) {
|
||||
FlagSetting fs(DisplayVMOutput, DisplayVMOutput && TraceDeoptimization);
|
||||
Deoptimization::print_statistics();
|
||||
SharedRuntime::print_statistics();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (PrintNMethodStatistics) {
|
||||
nmethod::print_statistics();
|
||||
}
|
||||
if (CountCompiledCalls) {
|
||||
print_method_invocation_histogram();
|
||||
}
|
||||
|
@ -409,6 +425,10 @@ void before_exit(JavaThread * thread) {
|
|||
}
|
||||
}
|
||||
|
||||
#if INCLUDE_JVMCI
|
||||
JVMCIRuntime::shutdown();
|
||||
#endif
|
||||
|
||||
// Hang forever on exit if we're reporting an error.
|
||||
if (ShowMessageBoxOnError && is_error_reported()) {
|
||||
os::infinite_sleep();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue