< prev index next >

src/share/vm/memory/filemap.hpp

Print this page




 237   bool  verify_region_checksum(int i);
 238   void  close();
 239   bool  is_open() { return _file_open; }
 240   ReservedSpace reserve_shared_memory();
 241 
 242   // JVM/TI RedefineClasses() support:
 243   // Remap the shared readonly space to shared readwrite, private.
 244   bool  remap_shared_readonly_as_readwrite();
 245 
 246   // Errors.
 247   static void fail_stop(const char *msg, ...) ATTRIBUTE_PRINTF(1, 2);
 248   static void fail_continue(const char *msg, ...) ATTRIBUTE_PRINTF(1, 2);
 249 
 250   // Return true if given address is in the mapped shared space.
 251   bool is_in_shared_space(const void* p) NOT_CDS_RETURN_(false);
 252   bool is_in_shared_region(const void* p, int idx) NOT_CDS_RETURN_(false);
 253   void print_shared_spaces() NOT_CDS_RETURN;
 254 
 255   // The ro+rw+md+mc spaces size
 256   static size_t core_spaces_size() {
 257     return align_size_up((SharedReadOnlySize + SharedReadWriteSize +
 258                           SharedMiscDataSize + SharedMiscCodeSize),
 259                           os::vm_allocation_granularity());
 260   }
 261 
 262   // The estimated optional space size.
 263   //
 264   // Currently the optional space only has archived class bytes.
 265   // The core_spaces_size is the size of all class metadata, which is a good
 266   // estimate of the total class bytes to be archived. Only the portion
 267   // containing data is written out to the archive and mapped at runtime.
 268   // There is no memory waste due to unused portion in optional space.
 269   static size_t optional_space_size() {
 270     return core_spaces_size();
 271   }
 272 
 273   // Total shared_spaces size includes the ro, rw, md, mc and od spaces
 274   static size_t shared_spaces_size() {
 275     return core_spaces_size() + optional_space_size();
 276   }
 277 




 237   bool  verify_region_checksum(int i);
 238   void  close();
 239   bool  is_open() { return _file_open; }
 240   ReservedSpace reserve_shared_memory();
 241 
 242   // JVM/TI RedefineClasses() support:
 243   // Remap the shared readonly space to shared readwrite, private.
 244   bool  remap_shared_readonly_as_readwrite();
 245 
 246   // Errors.
 247   static void fail_stop(const char *msg, ...) ATTRIBUTE_PRINTF(1, 2);
 248   static void fail_continue(const char *msg, ...) ATTRIBUTE_PRINTF(1, 2);
 249 
 250   // Return true if given address is in the mapped shared space.
 251   bool is_in_shared_space(const void* p) NOT_CDS_RETURN_(false);
 252   bool is_in_shared_region(const void* p, int idx) NOT_CDS_RETURN_(false);
 253   void print_shared_spaces() NOT_CDS_RETURN;
 254 
 255   // The ro+rw+md+mc spaces size
 256   static size_t core_spaces_size() {
 257     return align_up((SharedReadOnlySize + SharedReadWriteSize +
 258                      SharedMiscDataSize + SharedMiscCodeSize),
 259                      os::vm_allocation_granularity());
 260   }
 261 
 262   // The estimated optional space size.
 263   //
 264   // Currently the optional space only has archived class bytes.
 265   // The core_spaces_size is the size of all class metadata, which is a good
 266   // estimate of the total class bytes to be archived. Only the portion
 267   // containing data is written out to the archive and mapped at runtime.
 268   // There is no memory waste due to unused portion in optional space.
 269   static size_t optional_space_size() {
 270     return core_spaces_size();
 271   }
 272 
 273   // Total shared_spaces size includes the ro, rw, md, mc and od spaces
 274   static size_t shared_spaces_size() {
 275     return core_spaces_size() + optional_space_size();
 276   }
 277 


< prev index next >