src/hotspot/share/code/nmethod.hpp
changeset 57490 7826a2a06f87
parent 55562 2f464d628942
child 58226 408c445d04e8
equal deleted inserted replaced
57489:388c36110e88 57490:7826a2a06f87
   210 
   210 
   211   // helper methods
   211   // helper methods
   212   void* operator new(size_t size, int nmethod_size, int comp_level) throw();
   212   void* operator new(size_t size, int nmethod_size, int comp_level) throw();
   213 
   213 
   214   const char* reloc_string_for(u_char* begin, u_char* end);
   214   const char* reloc_string_for(u_char* begin, u_char* end);
       
   215 
       
   216   bool try_transition(int new_state);
       
   217 
   215   // Returns true if this thread changed the state of the nmethod or
   218   // Returns true if this thread changed the state of the nmethod or
   216   // false if another thread performed the transition.
   219   // false if another thread performed the transition.
   217   bool make_not_entrant_or_zombie(int state);
   220   bool make_not_entrant_or_zombie(int state);
   218   bool make_entrant() { Unimplemented(); return false; }
   221   bool make_entrant() { Unimplemented(); return false; }
   219   void inc_decompile_count();
   222   void inc_decompile_count();
   337   address verified_entry_point() const            { return _verified_entry_point;    } // if klass is correct
   340   address verified_entry_point() const            { return _verified_entry_point;    } // if klass is correct
   338 
   341 
   339   // flag accessing and manipulation
   342   // flag accessing and manipulation
   340   bool  is_not_installed() const                  { return _state == not_installed; }
   343   bool  is_not_installed() const                  { return _state == not_installed; }
   341   bool  is_in_use() const                         { return _state <= in_use; }
   344   bool  is_in_use() const                         { return _state <= in_use; }
   342   bool  is_alive() const                          { return _state < zombie; }
   345   bool  is_alive() const                          { return _state < unloaded; }
   343   bool  is_not_entrant() const                    { return _state == not_entrant; }
   346   bool  is_not_entrant() const                    { return _state == not_entrant; }
   344   bool  is_zombie() const                         { return _state == zombie; }
   347   bool  is_zombie() const                         { return _state == zombie; }
   345   bool  is_unloaded() const                       { return _state == unloaded; }
   348   bool  is_unloaded() const                       { return _state == unloaded; }
   346 
   349 
   347   void clear_unloading_state();
   350   void clear_unloading_state();