< prev index next >

src/hotspot/share/classfile/moduleEntry.hpp

Print this page
*** 75,11 ***
    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_open;                       // whether the packages in the module are all unqualifiedly exported
    bool _is_patched;                    // whether the module is patched via --patch-module
!   CDS_JAVA_HEAP_ONLY(narrowOop _archived_module_narrow_oop;)
  
    JFR_ONLY(DEFINE_TRACE_ID_FIELD;)
    enum {MODULE_READS_SIZE = 101};      // Initial size of list of modules that the module can read.
  
  public:
--- 75,11 ---
    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_open;                       // whether the packages in the module are all unqualifiedly exported
    bool _is_patched;                    // whether the module is patched via --patch-module
!   CDS_JAVA_HEAP_ONLY(int _archived_module_index;)
  
    JFR_ONLY(DEFINE_TRACE_ID_FIELD;)
    enum {MODULE_READS_SIZE = 101};      // Initial size of list of modules that the module can read.
  
  public:

*** 200,11 ***
    void init_archived_oops();
    static ModuleEntry* get_archived_entry(ModuleEntry* orig_entry);
    static Array<ModuleEntry*>* write_growable_array(GrowableArray<ModuleEntry*>* array);
    static GrowableArray<ModuleEntry*>* restore_growable_array(Array<ModuleEntry*>* archived_array);
    void load_from_archive(ClassLoaderData* loader_data);
!   void restore_archive_oops(ClassLoaderData* loader_data);
  #endif
  };
  
  // Iterator interface
  class ModuleClosure: public StackObj {
--- 200,12 ---
    void init_archived_oops();
    static ModuleEntry* get_archived_entry(ModuleEntry* orig_entry);
    static Array<ModuleEntry*>* write_growable_array(GrowableArray<ModuleEntry*>* array);
    static GrowableArray<ModuleEntry*>* restore_growable_array(Array<ModuleEntry*>* archived_array);
    void load_from_archive(ClassLoaderData* loader_data);
!   void restore_archived_oops(ClassLoaderData* loader_data);
+   void clear_archived_oops();
  #endif
  };
  
  // Iterator interface
  class ModuleClosure: public StackObj {
< prev index next >