< prev index next >

src/share/vm/memory/metaspace.cpp

Print this page

        

*** 3345,3356 **** 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 archived heap regions after compressed pointers ! // because it relies on compressed class pointers setting to work mapinfo->map_heap_regions(); } #endif // _LP64 } else { assert(!mapinfo->is_open() && !UseSharedSpaces, --- 3345,3356 ---- 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_heap_regions() compares the current narrow oop and klass encodings ! // with the archived ones, so it must be done after all encodings are determined. mapinfo->map_heap_regions(); } #endif // _LP64 } else { assert(!mapinfo->is_open() && !UseSharedSpaces,
< prev index next >