mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8309170: CDS archive heap is always relocated for larger heap
Reviewed-by: stuefe, iklam
This commit is contained in:
@@ -551,7 +551,7 @@ void ReservedHeapSpace::initialize_compressed_heap(const size_t size, size_t ali
|
||||
const size_t class_space = align_up(CompressedClassSpaceSize, alignment);
|
||||
// For small heaps, save some space for compressed class pointer
|
||||
// space so it can be decoded with no base.
|
||||
if (UseCompressedClassPointers && !UseSharedSpaces &&
|
||||
if (UseCompressedClassPointers && !UseSharedSpaces && !DumpSharedSpaces &&
|
||||
OopEncodingHeapMax <= KlassEncodingMetaspaceMax &&
|
||||
(uint64_t)(aligned_heap_base_min_address + size + class_space) <= KlassEncodingMetaspaceMax) {
|
||||
zerobased_max = (char *)OopEncodingHeapMax - class_space;
|
||||
|
||||
Reference in New Issue
Block a user