< prev index next >

src/hotspot/share/memory/metaspace.cpp

Print this page
*** 689,11 ***
    MetaspaceGC::initialize(); // <- since we do not prealloc init chunks anymore is this still needed?
  
    metaspace::ChunkHeaderPool::initialize();
  
    if (CDSConfig::is_dumping_static_archive()) {
!     assert(!UseSharedSpaces, "sanity");
      MetaspaceShared::initialize_for_static_dump();
    }
  
    // If UseCompressedClassPointers=1, we have two cases:
    // a) if CDS is active (runtime, Xshare=on), it will create the class space
--- 689,13 ---
    MetaspaceGC::initialize(); // <- since we do not prealloc init chunks anymore is this still needed?
  
    metaspace::ChunkHeaderPool::initialize();
  
    if (CDSConfig::is_dumping_static_archive()) {
!     if (!CDSConfig::is_dumping_final_static_archive()) {
+       assert(!UseSharedSpaces, "sanity");
+     }
      MetaspaceShared::initialize_for_static_dump();
    }
  
    // If UseCompressedClassPointers=1, we have two cases:
    // a) if CDS is active (runtime, Xshare=on), it will create the class space
< prev index next >