src/hotspot/share/oops/method.hpp
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File open Sdiff src/hotspot/share/oops

src/hotspot/share/oops/method.hpp

Print this page




 926   bool has_osr_nmethod(int level, bool match_level) {
 927    return method_holder()->lookup_osr_nmethod(this, InvocationEntryBci, level, match_level) != NULL;
 928   }
 929 
 930   int mark_osr_nmethods() {
 931     return method_holder()->mark_osr_nmethods(this);
 932   }
 933 
 934   nmethod* lookup_osr_nmethod_for(int bci, int level, bool match_level) {
 935     return method_holder()->lookup_osr_nmethod(this, bci, level, match_level);
 936   }
 937 
 938   // Find if klass for method is loaded
 939   bool is_klass_loaded_by_klass_index(int klass_index) const;
 940   bool is_klass_loaded(int refinfo_index, bool must_be_resolved = false) const;
 941 
 942   // Indicates whether compilation failed earlier for this method, or
 943   // whether it is not compilable for another reason like having a
 944   // breakpoint set in it.
 945   bool  is_not_compilable(int comp_level = CompLevel_any) const;
 946   void set_not_compilable(int comp_level = CompLevel_all, bool report = true, const char* reason = NULL);
 947   void set_not_compilable_quietly(int comp_level = CompLevel_all) {
 948     set_not_compilable(comp_level, false);
 949   }
 950   bool  is_not_osr_compilable(int comp_level = CompLevel_any) const;
 951   void set_not_osr_compilable(int comp_level = CompLevel_all, bool report = true, const char* reason = NULL);
 952   void set_not_osr_compilable_quietly(int comp_level = CompLevel_all) {
 953     set_not_osr_compilable(comp_level, false);
 954   }
 955   bool is_always_compilable() const;
 956 
 957  private:
 958   void print_made_not_compilable(int comp_level, bool is_osr, bool report, const char* reason);
 959 
 960  public:
 961   MethodCounters* get_method_counters(TRAPS) {
 962     if (_method_counters == NULL) {
 963       build_method_counters(this, CHECK_AND_CLEAR_NULL);
 964     }
 965     return _method_counters;
 966   }
 967 
 968   bool   is_not_c1_compilable() const         { return access_flags().is_not_c1_compilable();  }
 969   void  set_not_c1_compilable()               {       _access_flags.set_not_c1_compilable();   }
 970   void clear_not_c1_compilable()              {       _access_flags.clear_not_c1_compilable(); }
 971   bool   is_not_c2_compilable() const         { return access_flags().is_not_c2_compilable();  }
 972   void  set_not_c2_compilable()               {       _access_flags.set_not_c2_compilable();   }
 973   void clear_not_c2_compilable()              {       _access_flags.clear_not_c2_compilable(); }




 926   bool has_osr_nmethod(int level, bool match_level) {
 927    return method_holder()->lookup_osr_nmethod(this, InvocationEntryBci, level, match_level) != NULL;
 928   }
 929 
 930   int mark_osr_nmethods() {
 931     return method_holder()->mark_osr_nmethods(this);
 932   }
 933 
 934   nmethod* lookup_osr_nmethod_for(int bci, int level, bool match_level) {
 935     return method_holder()->lookup_osr_nmethod(this, bci, level, match_level);
 936   }
 937 
 938   // Find if klass for method is loaded
 939   bool is_klass_loaded_by_klass_index(int klass_index) const;
 940   bool is_klass_loaded(int refinfo_index, bool must_be_resolved = false) const;
 941 
 942   // Indicates whether compilation failed earlier for this method, or
 943   // whether it is not compilable for another reason like having a
 944   // breakpoint set in it.
 945   bool  is_not_compilable(int comp_level = CompLevel_any) const;
 946   void set_not_compilable(const char* reason, int comp_level = CompLevel_all, bool report = true);
 947   void set_not_compilable_quietly(const char* reason, int comp_level = CompLevel_all) {
 948     set_not_compilable(reason, comp_level, false);
 949   }
 950   bool  is_not_osr_compilable(int comp_level = CompLevel_any) const;
 951   void set_not_osr_compilable(const char* reason, int comp_level = CompLevel_all, bool report = true);
 952   void set_not_osr_compilable_quietly(const char* reason, int comp_level = CompLevel_all) {
 953     set_not_osr_compilable(reason, comp_level, false);
 954   }
 955   bool is_always_compilable() const;
 956 
 957  private:
 958   void print_made_not_compilable(int comp_level, bool is_osr, bool report, const char* reason);
 959 
 960  public:
 961   MethodCounters* get_method_counters(TRAPS) {
 962     if (_method_counters == NULL) {
 963       build_method_counters(this, CHECK_AND_CLEAR_NULL);
 964     }
 965     return _method_counters;
 966   }
 967 
 968   bool   is_not_c1_compilable() const         { return access_flags().is_not_c1_compilable();  }
 969   void  set_not_c1_compilable()               {       _access_flags.set_not_c1_compilable();   }
 970   void clear_not_c1_compilable()              {       _access_flags.clear_not_c1_compilable(); }
 971   bool   is_not_c2_compilable() const         { return access_flags().is_not_c2_compilable();  }
 972   void  set_not_c2_compilable()               {       _access_flags.set_not_c2_compilable();   }
 973   void clear_not_c2_compilable()              {       _access_flags.clear_not_c2_compilable(); }


src/hotspot/share/oops/method.hpp
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File