< prev index next >

src/hotspot/share/memory/metaspaceShared.cpp

Print this page

        

@@ -423,11 +423,11 @@
     }
   }
 }
 
 void MetaspaceShared::commit_shared_space_to(char* newtop) {
-  assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump-time only");
+  assert(Arguments::is_dumping_archive(), "dump-time only");
   char* base = _shared_rs.base();
   size_t need_committed_size = newtop - base;
   size_t has_committed_size = _shared_vs.committed_size();
   if (need_committed_size < has_committed_size) {
     return;

@@ -507,11 +507,11 @@
   assert(_i2i_entry_code_buffers_size == total_size, "must not change");
   return _i2i_entry_code_buffers;
 }
 
 uintx MetaspaceShared::object_delta_uintx(void* obj) {
-  assert(DumpSharedSpaces || DynamicDumpSharedSpaces,
+  assert(Arguments::is_dumping_archive(),
          "supported only for dumping");
   if (DumpSharedSpaces) {
     assert(shared_rs()->contains(obj), "must be");
   } else {
     assert(is_in_shared_metaspace(obj) || DynamicArchive::is_in_target_space(obj), "must be");
< prev index next >