< prev index next >

src/share/vm/memory/metaspace.cpp

Print this page

        

@@ -3345,13 +3345,13 @@
         char* cds_end = (char*)(cds_address + cds_total);
         cds_end = (char *)align_up(cds_end, _reserve_alignment);
         // If UseCompressedClassPointers is set then allocate the metaspace area
         // above the heap and above the CDS area (if it exists).
         allocate_metaspace_compressed_klass_ptrs(cds_end, cds_address);
-        // Map the shared string space after compressed pointers
+        // Map the archived heap regions after compressed pointers
         // because it relies on compressed class pointers setting to work
-        mapinfo->map_string_regions();
+        mapinfo->map_heap_regions();
       }
 #endif // _LP64
     } else {
       assert(!mapinfo->is_open() && !UseSharedSpaces,
              "archive file not closed or shared spaces not disabled.");
< prev index next >