hotspot/src/share/vm/classfile/moduleEntry.hpp
changeset 41183 207b92e69457
parent 39616 f82b1f888578
child 42575 bd1618170c93
child 42307 cefc81dc1d52
equal deleted inserted replaced
41182:dbd59c1da636 41183:207b92e69457
    76     _can_read_all_unnamed = false;
    76     _can_read_all_unnamed = false;
    77     _has_default_read_edges = false;
    77     _has_default_read_edges = false;
    78     _must_walk_reads = false;
    78     _must_walk_reads = false;
    79   }
    79   }
    80 
    80 
    81   Symbol*          name() const          { return literal(); }
    81   Symbol*          name() const                        { return literal(); }
    82   void             set_name(Symbol* n)   { set_literal(n); }
    82   void             set_name(Symbol* n)                 { set_literal(n); }
    83 
    83 
    84   jobject          module() const        { return _module; }
    84   jobject          module() const                      { return _module; }
    85   void             set_module(jobject j) { _module = j; }
    85   void             set_module(jobject j)               { _module = j; }
    86 
    86 
    87   // The shared ProtectionDomain reference is set once the VM loads a shared class
    87   // The shared ProtectionDomain reference is set once the VM loads a shared class
    88   // originated from the current Module. The referenced ProtectionDomain object is
    88   // originated from the current Module. The referenced ProtectionDomain object is
    89   // created by the ClassLoader when loading a class (shared or non-shared) from the
    89   // created by the ClassLoader when loading a class (shared or non-shared) from the
    90   // Module for the first time. This ProtectionDomain object is used for all
    90   // Module for the first time. This ProtectionDomain object is used for all
   215   // purge dead weak references out of reads list
   215   // purge dead weak references out of reads list
   216   void purge_all_module_reads();
   216   void purge_all_module_reads();
   217 
   217 
   218   // Special handling for unnamed module, one per class loader's ModuleEntryTable
   218   // Special handling for unnamed module, one per class loader's ModuleEntryTable
   219   void create_unnamed_module(ClassLoaderData* loader_data);
   219   void create_unnamed_module(ClassLoaderData* loader_data);
   220   ModuleEntry* unnamed_module()                           { return _unnamed_module; }
   220   ModuleEntry* unnamed_module()                                { return _unnamed_module; }
   221 
   221 
   222   // Special handling for java.base
   222   // Special handling for java.base
   223   static ModuleEntry* javabase_module()                   { return _javabase_module; }
   223   static ModuleEntry* javabase_moduleEntry()                   { return _javabase_module; }
   224   static void set_javabase_module(ModuleEntry* java_base) { _javabase_module = java_base; }
   224   static void set_javabase_moduleEntry(ModuleEntry* java_base) { _javabase_module = java_base; }
   225   static bool javabase_defined()                          { return ((_javabase_module != NULL) &&
   225   static bool javabase_defined()                               { return ((_javabase_module != NULL) &&
   226                                                                     (_javabase_module->module() != NULL)); }
   226                                                                          (_javabase_module->module() != NULL)); }
   227   static void finalize_javabase(Handle module_handle, Symbol* version, Symbol* location);
   227   static void finalize_javabase(Handle module_handle, Symbol* version, Symbol* location);
   228   static void patch_javabase_entries(Handle module_handle);
   228   static void patch_javabase_entries(Handle module_handle);
   229 
   229 
   230   void print(outputStream* st = tty);
   230   void print(outputStream* st = tty);
   231   void verify();
   231   void verify();