equal
deleted
inserted
replaced
123 static MetaspaceSharedStats _stats; |
123 static MetaspaceSharedStats _stats; |
124 static bool _link_classes_made_progress; |
124 static bool _link_classes_made_progress; |
125 static bool _check_classes_made_progress; |
125 static bool _check_classes_made_progress; |
126 static bool _has_error_classes; |
126 static bool _has_error_classes; |
127 static bool _archive_loading_failed; |
127 static bool _archive_loading_failed; |
|
128 static bool _remapped_readwrite; |
128 static address _cds_i2i_entry_code_buffers; |
129 static address _cds_i2i_entry_code_buffers; |
129 static size_t _cds_i2i_entry_code_buffers_size; |
130 static size_t _cds_i2i_entry_code_buffers_size; |
130 |
131 |
131 // Used only during dumping. |
132 // Used only during dumping. |
132 static SharedMiscRegion _md; |
133 static SharedMiscRegion _md; |
203 // JVM/TI RedefineClasses() support: |
204 // JVM/TI RedefineClasses() support: |
204 // Remap the shared readonly space to shared readwrite, private if |
205 // Remap the shared readonly space to shared readwrite, private if |
205 // sharing is enabled. Simply returns true if sharing is not enabled |
206 // sharing is enabled. Simply returns true if sharing is not enabled |
206 // or if the remapping has already been done by a prior call. |
207 // or if the remapping has already been done by a prior call. |
207 static bool remap_shared_readonly_as_readwrite() NOT_CDS_RETURN_(true); |
208 static bool remap_shared_readonly_as_readwrite() NOT_CDS_RETURN_(true); |
|
209 static bool remapped_readwrite() { |
|
210 CDS_ONLY(return _remapped_readwrite); |
|
211 NOT_CDS(return false); |
|
212 } |
208 |
213 |
209 static void print_shared_spaces(); |
214 static void print_shared_spaces(); |
210 |
215 |
211 static bool try_link_class(InstanceKlass* ik, TRAPS); |
216 static bool try_link_class(InstanceKlass* ik, TRAPS); |
212 static void link_one_shared_class(Klass* obj, TRAPS); |
217 static void link_one_shared_class(Klass* obj, TRAPS); |