83
84 jobject module() const { return _module; }
85 void set_module(jobject j) { _module = j; }
86
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
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
91 // classes from the Module loaded by the same ClassLoader.
92 Handle shared_protection_domain();
93 void set_shared_protection_domain(ClassLoaderData *loader_data, Handle pd);
94
95 ClassLoaderData* loader_data() const { return _loader_data; }
96 void set_loader_data(ClassLoaderData* l) { _loader_data = l; }
97
98 Symbol* version() const { return _version; }
99 void set_version(Symbol* version);
100
101 Symbol* location() const { return _location; }
102 void set_location(Symbol* location);
103
104 bool can_read(ModuleEntry* m) const;
105 bool has_reads() const;
106 void add_read(ModuleEntry* m);
107 void set_read_walk_required(ClassLoaderData* m_loader_data);
108
109 bool is_named() const { return (name() != NULL); }
110
111 bool can_read_all_unnamed() const {
112 assert(is_named() || _can_read_all_unnamed == true,
113 "unnamed modules can always read all unnamed modules");
114 return _can_read_all_unnamed;
115 }
116
117 // Modules can only go from strict to loose.
118 void set_can_read_all_unnamed() { _can_read_all_unnamed = true; }
119
120 bool has_default_read_edges() const {
121 return _has_default_read_edges;
122 }
|
83
84 jobject module() const { return _module; }
85 void set_module(jobject j) { _module = j; }
86
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
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
91 // classes from the Module loaded by the same ClassLoader.
92 Handle shared_protection_domain();
93 void set_shared_protection_domain(ClassLoaderData *loader_data, Handle pd);
94
95 ClassLoaderData* loader_data() const { return _loader_data; }
96 void set_loader_data(ClassLoaderData* l) { _loader_data = l; }
97
98 Symbol* version() const { return _version; }
99 void set_version(Symbol* version);
100
101 Symbol* location() const { return _location; }
102 void set_location(Symbol* location);
103 bool is_non_jdk_module();
104
105 bool can_read(ModuleEntry* m) const;
106 bool has_reads() const;
107 void add_read(ModuleEntry* m);
108 void set_read_walk_required(ClassLoaderData* m_loader_data);
109
110 bool is_named() const { return (name() != NULL); }
111
112 bool can_read_all_unnamed() const {
113 assert(is_named() || _can_read_all_unnamed == true,
114 "unnamed modules can always read all unnamed modules");
115 return _can_read_all_unnamed;
116 }
117
118 // Modules can only go from strict to loose.
119 void set_can_read_all_unnamed() { _can_read_all_unnamed = true; }
120
121 bool has_default_read_edges() const {
122 return _has_default_read_edges;
123 }
|