src/hotspot/share/memory/metaspaceShared.hpp
changeset 58096 0d97bf7cf8a4
parent 55296 357c9dcb6eb9
child 58679 9c3209ff7550
child 59056 15936b142f86
equal deleted inserted replaced
58095:adc72cd1d1f2 58096:0d97bf7cf8a4
   181   static int _max_alignment;
   181   static int _max_alignment;
   182   static MetaspaceSharedStats _stats;
   182   static MetaspaceSharedStats _stats;
   183   static bool _has_error_classes;
   183   static bool _has_error_classes;
   184   static bool _archive_loading_failed;
   184   static bool _archive_loading_failed;
   185   static bool _remapped_readwrite;
   185   static bool _remapped_readwrite;
   186   static address _cds_i2i_entry_code_buffers;
   186   static address _i2i_entry_code_buffers;
   187   static size_t  _cds_i2i_entry_code_buffers_size;
   187   static size_t  _i2i_entry_code_buffers_size;
   188   static size_t  _core_spaces_size;
   188   static size_t  _core_spaces_size;
   189   static void* _shared_metaspace_static_top;
   189   static void* _shared_metaspace_static_top;
   190  public:
   190  public:
   191   enum {
   191   enum {
   192     // core archive spaces
   192     // core archive spaces
   330   static size_t ro_array_bytesize(int length) {
   330   static size_t ro_array_bytesize(int length) {
   331     size_t byte_size = Array<T>::byte_sizeof(length, sizeof(T));
   331     size_t byte_size = Array<T>::byte_sizeof(length, sizeof(T));
   332     return align_up(byte_size, BytesPerWord);
   332     return align_up(byte_size, BytesPerWord);
   333   }
   333   }
   334 
   334 
   335   static address cds_i2i_entry_code_buffers(size_t total_size);
   335   static address i2i_entry_code_buffers(size_t total_size);
   336 
   336 
   337   static address cds_i2i_entry_code_buffers() {
   337   static address i2i_entry_code_buffers() {
   338     return _cds_i2i_entry_code_buffers;
   338     return _i2i_entry_code_buffers;
   339   }
   339   }
   340   static size_t cds_i2i_entry_code_buffers_size() {
   340   static size_t i2i_entry_code_buffers_size() {
   341     return _cds_i2i_entry_code_buffers_size;
   341     return _i2i_entry_code_buffers_size;
   342   }
   342   }
   343   static void relocate_klass_ptr(oop o);
   343   static void relocate_klass_ptr(oop o);
   344 
   344 
   345   static Klass* get_relocated_klass(Klass *k);
   345   static Klass* get_relocated_klass(Klass *k);
   346 
   346