hotspot/src/share/vm/classfile/moduleEntry.hpp
changeset 42647 d01f2abf2c65
parent 42646 591ef3658bb0
parent 42634 7459867ebf98
child 44326 6c59cca7ff07
--- a/hotspot/src/share/vm/classfile/moduleEntry.hpp	Thu Dec 08 15:49:29 2016 +0100
+++ b/hotspot/src/share/vm/classfile/moduleEntry.hpp	Thu Dec 08 17:03:45 2016 +0100
@@ -65,6 +65,7 @@
   bool _can_read_all_unnamed;
   bool _has_default_read_edges;        // JVMTI redefine/retransform support
   bool _must_walk_reads;               // walk module's reads list at GC safepoints to purge out dead modules
+  bool _is_patched;                    // whether the module is patched via --patch-module
   TRACE_DEFINE_TRACE_ID_FIELD;
   enum {MODULE_READS_SIZE = 101};      // Initial size of list of modules that the module can read.
 
@@ -79,6 +80,7 @@
     _can_read_all_unnamed = false;
     _has_default_read_edges = false;
     _must_walk_reads = false;
+    _is_patched = false;
   }
 
   Symbol*          name() const                        { return literal(); }
@@ -133,6 +135,13 @@
     return prev;
   }
 
+  void set_is_patched() {
+      _is_patched = true;
+  }
+  bool is_patched() {
+      return _is_patched;
+  }
+
   ModuleEntry* next() const {
     return (ModuleEntry*)HashtableEntry<Symbol*, mtModule>::next();
   }