hotspot/src/share/vm/oops/instanceKlass.hpp
changeset 38309 9b8e9c373740
parent 38192 05ab1ee04bf2
child 39216 40c3d66352ae
--- a/hotspot/src/share/vm/oops/instanceKlass.hpp	Tue May 17 03:26:07 2016 -0400
+++ b/hotspot/src/share/vm/oops/instanceKlass.hpp	Tue May 17 08:51:05 2016 -0400
@@ -190,6 +190,7 @@
   // _is_marked_dependent can be set concurrently, thus cannot be part of the
   // _misc_flags.
   bool            _is_marked_dependent;  // used for marking during flushing and deoptimization
+  bool            _is_being_redefined;   // used for locking redefinition
 
   // The low two bits of _misc_flags contains the kind field.
   // This can be used to quickly discriminate among the four kinds of
@@ -694,6 +695,10 @@
   }
 
 #if INCLUDE_JVMTI
+  // Redefinition locking.  Class can only be redefined by one thread at a time.
+  bool is_being_redefined() const          { return _is_being_redefined; }
+  void set_is_being_redefined(bool value)  { _is_being_redefined = value; }
+
   // RedefineClasses() support for previous versions:
   void add_previous_version(instanceKlassHandle ikh, int emcp_method_count);