src/share/vm/oops/instanceKlass.hpp

changeset 9745
0e3d6188f198
parent 9355
792ccf73293a
child 9756
2be326848943
child 9792
9a7135d0a309
equal deleted inserted replaced
9744:b02fb6a07ed5 9745:0e3d6188f198
223 int _nonstatic_oop_map_size;// size in words of nonstatic oop map blocks 223 int _nonstatic_oop_map_size;// size in words of nonstatic oop map blocks
224 224
225 // _is_marked_dependent can be set concurrently, thus cannot be part of the 225 // _is_marked_dependent can be set concurrently, thus cannot be part of the
226 // _misc_flags. 226 // _misc_flags.
227 bool _is_marked_dependent; // used for marking during flushing and deoptimization 227 bool _is_marked_dependent; // used for marking during flushing and deoptimization
228 bool _is_being_redefined; // used for locking redefinition
228 bool _has_unloaded_dependent; 229 bool _has_unloaded_dependent;
229 230
230 enum { 231 enum {
231 _misc_rewritten = 1 << 0, // methods rewritten. 232 _misc_rewritten = 1 << 0, // methods rewritten.
232 _misc_has_nonstatic_fields = 1 << 1, // for sizing with UseCompressedOops 233 _misc_has_nonstatic_fields = 1 << 1, // for sizing with UseCompressedOops
665 int nonstatic_oop_map_size() const { return _nonstatic_oop_map_size; } 666 int nonstatic_oop_map_size() const { return _nonstatic_oop_map_size; }
666 void set_nonstatic_oop_map_size(int words) { 667 void set_nonstatic_oop_map_size(int words) {
667 _nonstatic_oop_map_size = words; 668 _nonstatic_oop_map_size = words;
668 } 669 }
669 670
671 // Redefinition locking. Class can only be redefined by one thread at a time.
672 bool is_being_redefined() const { return _is_being_redefined; }
673 void set_is_being_redefined(bool value) { _is_being_redefined = value; }
674
670 // RedefineClasses() support for previous versions: 675 // RedefineClasses() support for previous versions:
671 void add_previous_version(instanceKlassHandle ikh, int emcp_method_count); 676 void add_previous_version(instanceKlassHandle ikh, int emcp_method_count);
672 677
673 InstanceKlass* previous_versions() const { return _previous_versions; } 678 InstanceKlass* previous_versions() const { return _previous_versions; }
674 679

mercurial