--- old/src/hotspot/share/jvmci/jvmciCompiler.hpp 2019-03-28 11:22:43.000000000 -0700 +++ new/src/hotspot/share/jvmci/jvmciCompiler.hpp 2019-03-28 11:22:42.000000000 -0700 @@ -25,8 +25,6 @@ #define SHARE_JVMCI_JVMCICOMPILER_HPP #include "compiler/abstractCompiler.hpp" -#include "jvmci/jvmciEnv.hpp" -#include "utilities/exceptions.hpp" class JVMCICompiler : public AbstractCompiler { private: @@ -65,7 +63,7 @@ return _instance; } - virtual const char* name() { return "JVMCI"; } + virtual const char* name() { return UseJVMCINativeLibrary ? "JVMCI-native" : "JVMCI"; } virtual bool supports_native() { return true; } virtual bool supports_osr () { return true; } @@ -87,11 +85,13 @@ bool is_bootstrapping() const { return _bootstrapping; } + void set_bootstrap_compilation_request_handled() { + _instance->_bootstrap_compilation_request_handled = true; + } + // Compilation entry point for methods virtual void compile_method(ciEnv* env, ciMethod* target, int entry_bci, DirectiveSet* directive); - void compile_method(const methodHandle& target, int entry_bci, JVMCIEnv* env); - // Print compilation timers and statistics virtual void print_timers(); @@ -101,6 +101,10 @@ */ int methods_compiled() { return _methods_compiled; } + void inc_methods_compiled() { + Atomic::inc(&_methods_compiled); + } + // Print compilation timers and statistics static void print_compilation_timers();