hotspot/src/share/vm/runtime/compilationPolicy.hpp
changeset 38139 cf6f5c1b7205
parent 38133 78b95467b9f1
child 46727 6e4a84748e2c
equal deleted inserted replaced
38138:8514e24123c8 38139:cf6f5c1b7205
    41   static CompilationPolicy* _policy;
    41   static CompilationPolicy* _policy;
    42   // Accumulated time
    42   // Accumulated time
    43   static elapsedTimer       _accumulated_time;
    43   static elapsedTimer       _accumulated_time;
    44 
    44 
    45   static bool               _in_vm_startup;
    45   static bool               _in_vm_startup;
       
    46 
       
    47   // m must be compiled before executing it
       
    48   static bool must_be_compiled(methodHandle m, int comp_level = CompLevel_all);
       
    49 
    46 public:
    50 public:
    47   static  void set_in_vm_startup(bool in_vm_startup) { _in_vm_startup = in_vm_startup; }
    51   static  void set_in_vm_startup(bool in_vm_startup) { _in_vm_startup = in_vm_startup; }
    48   static  void completed_vm_startup();
    52   static  void completed_vm_startup();
    49   static  bool delay_compilation_during_startup()    { return _in_vm_startup; }
    53   static  bool delay_compilation_during_startup()    { return _in_vm_startup; }
    50 
    54 
    51   // m must be compiled before executing it
    55   // If m must_be_compiled then request a compilation from the CompileBroker.
    52   static bool must_be_compiled(methodHandle m, int comp_level = CompLevel_all);
    56   // This supports the -Xcomp option.
       
    57   static void compile_if_required(methodHandle m, TRAPS);
       
    58 
    53   // m is allowed to be compiled
    59   // m is allowed to be compiled
    54   static bool can_be_compiled(methodHandle m, int comp_level = CompLevel_all);
    60   static bool can_be_compiled(methodHandle m, int comp_level = CompLevel_all);
    55   // m is allowed to be osr compiled
    61   // m is allowed to be osr compiled
    56   static bool can_be_osr_compiled(methodHandle m, int comp_level = CompLevel_all);
    62   static bool can_be_osr_compiled(methodHandle m, int comp_level = CompLevel_all);
    57   static bool is_compilation_enabled();
    63   static bool is_compilation_enabled();