hotspot/src/share/vm/jvmci/jvmciCompiler.hpp
changeset 35845 30025047885d
parent 35143 33daaea9d5c2
child 38666 5ff19807abd5
equal deleted inserted replaced
35844:8a1952516600 35845:30025047885d
    31 class JVMCICompiler : public AbstractCompiler {
    31 class JVMCICompiler : public AbstractCompiler {
    32 private:
    32 private:
    33   bool _bootstrapping;
    33   bool _bootstrapping;
    34 
    34 
    35   /**
    35   /**
    36    * Number of methods compiled by JVMCI. This is not synchronized
    36    * Number of methods successfully compiled by a call to
    37    * so may not be 100% accurate.
    37    * JVMCICompiler::compile_method().
    38    */
    38    */
    39   volatile int _methodsCompiled;
    39   volatile int _methods_compiled;
    40 
    40 
    41   static JVMCICompiler* _instance;
    41   static JVMCICompiler* _instance;
    42 
    42 
    43   static elapsedTimer _codeInstallTimer;
    43   static elapsedTimer _codeInstallTimer;
    44 
    44 
    78   virtual bool is_trivial(Method* method);
    78   virtual bool is_trivial(Method* method);
    79 
    79 
    80   // Print compilation timers and statistics
    80   // Print compilation timers and statistics
    81   virtual void print_timers();
    81   virtual void print_timers();
    82 
    82 
    83   // Print compilation statistics
    83   /**
    84   void reset_compilation_stats();
    84    * Gets the number of methods that have been successfully compiled by
       
    85    * a call to JVMCICompiler::compile_method().
       
    86    */
       
    87   int methods_compiled() { return _methods_compiled; }
    85 
    88 
    86   // Print compilation timers and statistics
    89   // Print compilation timers and statistics
    87   static void print_compilation_timers();
    90   static void print_compilation_timers();
    88 
    91 
    89   static elapsedTimer* codeInstallTimer() { return &_codeInstallTimer; }
    92   static elapsedTimer* codeInstallTimer() { return &_codeInstallTimer; }