src/share/vm/code/nmethod.hpp

changeset 6172
df832bd8edb9
parent 5792
510fbd28919c
child 6429
606acabe7b5c
     1.1 --- a/src/share/vm/code/nmethod.hpp	Fri Dec 06 09:41:57 2013 -0800
     1.2 +++ b/src/share/vm/code/nmethod.hpp	Fri Dec 06 12:11:51 2013 -0800
     1.3 @@ -184,11 +184,12 @@
     1.4    bool _oops_are_stale;  // indicates that it's no longer safe to access oops section
     1.5  #endif
     1.6  
     1.7 -  enum { alive        = 0,
     1.8 -         not_entrant  = 1, // uncommon trap has happened but activations may still exist
     1.9 -         zombie       = 2,
    1.10 -         unloaded     = 3 };
    1.11 -
    1.12 +  enum { in_use       = 0,   // executable nmethod
    1.13 +         not_entrant  = 1,   // marked for deoptimization but activations may still exist,
    1.14 +                             // will be transformed to zombie when all activations are gone
    1.15 +         zombie       = 2,   // no activations exist, nmethod is ready for purge
    1.16 +         unloaded     = 3 }; // there should be no activations, should not be called,
    1.17 +                             // will be transformed to zombie immediately
    1.18  
    1.19    jbyte _scavenge_root_state;
    1.20  
    1.21 @@ -407,8 +408,8 @@
    1.22    address verified_entry_point() const            { return _verified_entry_point;    } // if klass is correct
    1.23  
    1.24    // flag accessing and manipulation
    1.25 -  bool  is_in_use() const                         { return _state == alive; }
    1.26 -  bool  is_alive() const                          { return _state == alive || _state == not_entrant; }
    1.27 +  bool  is_in_use() const                         { return _state == in_use; }
    1.28 +  bool  is_alive() const                          { return _state == in_use || _state == not_entrant; }
    1.29    bool  is_not_entrant() const                    { return _state == not_entrant; }
    1.30    bool  is_zombie() const                         { return _state == zombie; }
    1.31    bool  is_unloaded() const                       { return _state == unloaded;   }

mercurial