src/share/vm/oops/instanceKlass.hpp

changeset 9745
0e3d6188f198
parent 9355
792ccf73293a
child 9756
2be326848943
child 9792
9a7135d0a309
     1.1 --- a/src/share/vm/oops/instanceKlass.hpp	Tue Sep 03 06:41:37 2019 +0100
     1.2 +++ b/src/share/vm/oops/instanceKlass.hpp	Tue Sep 03 06:57:35 2019 +0100
     1.3 @@ -225,6 +225,7 @@
     1.4    // _is_marked_dependent can be set concurrently, thus cannot be part of the
     1.5    // _misc_flags.
     1.6    bool            _is_marked_dependent;  // used for marking during flushing and deoptimization
     1.7 +  bool            _is_being_redefined;   // used for locking redefinition
     1.8    bool            _has_unloaded_dependent;
     1.9  
    1.10    enum {
    1.11 @@ -667,6 +668,10 @@
    1.12      _nonstatic_oop_map_size = words;
    1.13    }
    1.14  
    1.15 +  // Redefinition locking.  Class can only be redefined by one thread at a time.
    1.16 +  bool is_being_redefined() const          { return _is_being_redefined; }
    1.17 +  void set_is_being_redefined(bool value)  { _is_being_redefined = value; }
    1.18 +
    1.19    // RedefineClasses() support for previous versions:
    1.20    void add_previous_version(instanceKlassHandle ikh, int emcp_method_count);
    1.21  

mercurial