src/hotspot/share/memory/metaspaceShared.cpp
changeset 58447 319173c62caa
parent 58278 e47b459b315c
child 58679 9c3209ff7550
child 59056 15936b142f86
equal deleted inserted replaced
58446:5c83830390ba 58447:319173c62caa
   423     }
   423     }
   424   }
   424   }
   425 }
   425 }
   426 
   426 
   427 void MetaspaceShared::commit_shared_space_to(char* newtop) {
   427 void MetaspaceShared::commit_shared_space_to(char* newtop) {
   428   assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump-time only");
   428   Arguments::assert_is_dumping_archive();
   429   char* base = _shared_rs.base();
   429   char* base = _shared_rs.base();
   430   size_t need_committed_size = newtop - base;
   430   size_t need_committed_size = newtop - base;
   431   size_t has_committed_size = _shared_vs.committed_size();
   431   size_t has_committed_size = _shared_vs.committed_size();
   432   if (need_committed_size < has_committed_size) {
   432   if (need_committed_size < has_committed_size) {
   433     return;
   433     return;
   507   assert(_i2i_entry_code_buffers_size == total_size, "must not change");
   507   assert(_i2i_entry_code_buffers_size == total_size, "must not change");
   508   return _i2i_entry_code_buffers;
   508   return _i2i_entry_code_buffers;
   509 }
   509 }
   510 
   510 
   511 uintx MetaspaceShared::object_delta_uintx(void* obj) {
   511 uintx MetaspaceShared::object_delta_uintx(void* obj) {
   512   assert(DumpSharedSpaces || DynamicDumpSharedSpaces,
   512   Arguments::assert_is_dumping_archive();
   513          "supported only for dumping");
       
   514   if (DumpSharedSpaces) {
   513   if (DumpSharedSpaces) {
   515     assert(shared_rs()->contains(obj), "must be");
   514     assert(shared_rs()->contains(obj), "must be");
   516   } else {
   515   } else {
   517     assert(is_in_shared_metaspace(obj) || DynamicArchive::is_in_target_space(obj), "must be");
   516     assert(is_in_shared_metaspace(obj) || DynamicArchive::is_in_target_space(obj), "must be");
   518   }
   517   }